/** @file flatstring_iostream.hpp * * Author: Roland Conybeare **/ #pragma once #include "flatstring.hpp" #include //#include namespace xo { /** @brief print flatstring on stream os. * **/ template void print_flatstring (std::ostream & os, const flatstring & x) { os << x.c_str(); } /** @brief print flatstring x on stream os. * * Example * @code * cout << flatstring("foo"); // outputs "foo" * @endcode **/ template inline std::ostream & operator<< (std::ostream & os, const flatstring & x) { print_flatstring(os, x); return os; } } /*namespace xo*/ /** end flatstring_iostream.hpp **/