|
tlx
|
Go to the source code of this file.
Classes | |
| struct | has_ostream_operator< typename, typename > |
| SFINAE magic helper for wrap_unprintable(). More... | |
| struct | has_ostream_operator< Type, decltype(std::declval< std::ostream & >()<< std::declval< Type const & >(), void())> |
Namespaces | |
| namespace | tlx |
Functions | |
| template<typename Type> | |
| enable_if<!has_ostream_operator< Type >::value, constchar * >::type | wrap_unprintable (Type, const char *instead="<unprintable>") |
| SFINAE magic to return "<unprintable>" instead if the value HAS NO ostream operator << available. | |
| template<typename Type> | |
| enable_if< has_ostream_operator< Type >::value, Type >::type | wrap_unprintable (Type value, const char *=nullptr) |
| SFINAE magic to return the value if the value HAS a ostream operator << available. | |
| template<typename Type> | |
| enable_if<!has_ostream_operator< Type >::value, constchar * >::type | wrap_unp (Type, const char *instead="<unprintable>") |
| SFINAE magic to return "<unprintable>" instead if the value HAS NO ostream operator << available. | |
| template<typename Type> | |
| enable_if< has_ostream_operator< Type >::value, Type >::type | wrap_unp (Type value, const char *=nullptr) |
| SFINAE magic to return the value if the value HAS a ostream operator << available. | |