Thrill  0.1
wrap_unprintable.hpp File Reference
#include <tlx/meta/enable_if.hpp>
#include <ostream>
#include <utility>
+ Include dependency graph for wrap_unprintable.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  has_ostream_operator< typename, typename >
 SFINAE magic helper for wrap_unprintable() More...
 
struct  declval< std::ostream & >()<< std::declval< Type const & >(), void())>
 

Namespaces

 tlx
 

Functions

template<typename Type >
enable_if<!has_ostream_operator< Type >::value, const char * >::type wrap_unp (Type, const char *instead="<unprintable>")
 
template<typename Type >
enable_if< has_ostream_operator< Type >::value, Type >::type wrap_unp (Type value, const char *=nullptr)
 
template<typename Type >
enable_if<!has_ostream_operator< Type >::value, const char * >::type wrap_unprintable (Type, const char *instead="<unprintable>")
 
template<typename Type >
enable_if< has_ostream_operator< Type >::value, Type >::type wrap_unprintable (Type value, const char *=nullptr)