cipra  1.2.1
A C++11 Unit Testing Framework based on Test::More
 All Classes Namespaces Functions Variables Typedefs Pages
Static Public Member Functions | List of all members
cipra::print_trait< T > Struct Template Reference

A type trait that users can specialize to tell how to stream an object to a std::ostream. More...

#include <tests.hpp>

+ Collaboration diagram for cipra::print_trait< T >:

Static Public Member Functions

static std::ostream & print (std::ostream &, const T &)
 Pretty-prints an object to a std::ostream. More...
 

Detailed Description

template<typename T>
struct cipra::print_trait< T >

A type trait that users can specialize to tell how to stream an object to a std::ostream.

Defaults to using operator<<.

Version
1.1
Author
Patrick M. Niedzielski
Date
2013-04-20
Since
1.1
Template Parameters
TThe type to print.

Member Function Documentation

template<typename T >
static std::ostream& cipra::print_trait< T >::print ( std::ostream &  ,
const T &   
)
inlinestatic

Pretty-prints an object to a std::ostream.

Defaults to using operator<<.

Author
Patrick M. Niedzielski
Date
2013-04-20
Since
1.1
Returns
The output stream.