Classes | Functions
vsl_stream.h File Reference

Allows you to use the stream output operator instead of vsl_print_summary. More...

#include <ostream>

Go to the source code of this file.

Classes

struct  vsl_stream_summary_t< T >
 Convert a vsl_print_summary function call to a streamable object. More...
 

Functions

template<class S >
vsl_stream_summary_t< S > vsl_stream_summary (const S &xx)
 
template<class T >
std::ostream & operator<< (std::ostream &os, const vsl_stream_summary_t< T > &sss)
 Insert conversion object into stream. More...
 

Detailed Description

Allows you to use the stream output operator instead of vsl_print_summary.

Author
Ian Scott So instead of
os << "Blah: ";
you can use
os << "Blah: " << vsl_stream_summary(blah);

Definition in file vsl_stream.h.

Function Documentation

◆ operator<<()

template<class T >
std::ostream& operator<< ( std::ostream &  os,
const vsl_stream_summary_t< T > &  sss 
)
inline

Insert conversion object into stream.

Definition at line 41 of file vsl_stream.h.

◆ vsl_stream_summary()

template<class S >
vsl_stream_summary_t<S> vsl_stream_summary ( const S &  xx)
inline

Definition at line 33 of file vsl_stream.h.