Boost.Hana  1.0.1
Your standard library for metaprogramming
Experimental features


Experimental features that may or may not make it into the library. These features should not expected to be stable.


struct  boost::hana::experimental::types< T >
 Container optimized for holding types. More...


auto boost::hana::experimental::print
 Returns a string representation of the given object. More...

Variable Documentation

auto boost::hana::experimental::print

#include <boost/hana/experimental/printable.hpp>

Initial value:
= [](auto const& x) -> std::string {
return tag-dispatched;

Returns a string representation of the given object.

This function is defined for most containers provided by Hana, and also for objects that define an operator<< that can be used with a std::basic_ostream. It can recursively print containers within containers, but do not expect any kind of proper indentation.

This function requires (the rest of) Boost to be available on the system. It also requires RTTI to be enabled.