METATEST_DEFINE_TO_STREAM_FOR_TEMPLATE

Synopsis

#define METATEST_DEFINE_TO_STREAM_FOR_TEMPLATE(arg_num, name, display_name) \
  // unspecified

Description

Defines an overload of to_stream for instances of the template name taking arg_num arguments, where arg_num is an integer value. display_name is a constant expression that can be displayed in a stream using operator<<. It is displayed as the name of the template. to_stream is called recursively for the template arguments.

#include <metatest/to_stream_fwd.hpp>

Example

template <class A, class B, class C>
class custom_template;

METATEST_DEFINE_TO_STREAM_FOR_TEMPLATE(3, custom_template, "custom_template")

[up]