PrevUpHomeNext

esv::kspt::wprintable


Human beings transform the world to enrich nature.

esv::kspt::wprintable - Esvcpp Output Concepts

esv::kspt::wprintable is a concept to constrain a wchar_t based printable types of std::wostream. The type must satisfy printable by std::wostream. Many basic types satisfy esv::wprintable, such as int, float, bool. Specially, std::wstring satisfies esv::kspt::wprintable, but std::string does not satisfy esv::kspt::wprintable, it satisfies esv::kspt::printable.

esv::kspt::wprintable

template <typename type1>
concept wprintable = ???;

c++ example

#include <esvcpp/core.hpp>

template <esv::kspt::wprintable type1>
class fizz_buzz
{
public:
	fizz_buzz(const type1 & value1)
	{
		std::wcout << value1 << std::endl;
		esv::wprint(value1);
	}
};

int main()
{
	fizz_buzz f1{123};
	fizz_buzz f2{L"Hello c++!"};
}

See Also

esv::kspt::printable

esv::kspt::printable_adapter

esv::wprint


PrevUpHomeNext

esv::print