value_to_stream

Synopsis

template <class T>
struct value_to_stream
{
  typedef value_to_stream type;

  static std::ostream& run(std::ostream&);
};

Description

Displays the value of T on the output stream. When T has T::get_value(), the result of that function is used. When T has T::value, that object is used. Otherwise the string "???" is displayed.

#include <mpllibs/metamonad/value_to_stream.hpp>

Example

value_to_stream<mpl::int_<13>>::run(std::cout);

[up]