Workspace 6.21.5
List of all members
StreamableOut< T > Struct Template Reference

Traits class to determine if a type T supports output streaming. More...

#include <Workspace/Application/LanguageUtils/streamable.h>

Inheritance diagram for StreamableOut< T >:
[legend]

Additional Inherited Members

- Public Types inherited from IsStreamableOut< T >
enum  { Is = (sizeof(checkForStreamable((ostrm << x))) == sizeof(char)) }
 

Detailed Description

template<class T>
struct CSIRO::Application::StreamableOut< T >

For a class to support onput streaming, it must support std::ostream functionality. Client code makes use of this traits class by testing the compile-time constant value of Is. You can create an specialization of this class if you want to avoid using the default tests which can yield compiler errors due to ambiguous overloads in certain circumstances.