All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ostreamMethods.h File Reference

Handy ostream output for various lib/tf and STL containers. More...

+ Include dependency graph for ostreamMethods.h:

Go to the source code of this file.

Functions

template<class T , uint32_t N>
std::enable_if
< 1::Tf_IsOstreamable< T >
), std::ostream & >::type 
operator<< (std::ostream &out, const TfSmallVector< T, N > &v)
 Output a TfSmallVector using [ ] as delimiters. More...
 
template<class T >
std::enable_if
< 1::Tf_IsOstreamable< T >
), std::ostream & >::type 
operator<< (std::ostream &out, const std::vector< T > &v)
 Output an STL vector using [ ] as delimiters. More...
 
template<class T >
std::enable_if
< 1::Tf_IsOstreamable< T >
), std::ostream & >::type 
operator<< (std::ostream &out, const std::set< T > &v)
 Output an STL set using ( ) as delimiters. More...
 
template<class T >
std::enable_if
< 1::Tf_IsOstreamable< T >
), std::ostream & >::type 
operator<< (std::ostream &out, const std::list< T > &l)
 Output an STL list using { } as delimiters. More...
 
template<class K , class M , class H , class C , class A >
std::enable_if
< 1::Tf_IsOstreamable< K >
)&&1::Tf_IsOstreamable< M >
), std::ostream & >::type 
operator<< (std::ostream &out, const 1::TfHashMap< K, M, H, C, A > &h)
 Output an TfHashMap using < > as delimiters. More...
 
template<class K , class M >
std::enable_if
< 1::Tf_IsOstreamable< K >
)&&1::Tf_IsOstreamable< M >
), std::ostream & >::type 
operator<< (std::ostream &out, const std::map< K, M > &h)
 Output an STL map using < > as delimiters. More...
 

Detailed Description

Handy ostream output for various lib/tf and STL containers.

These functions are useful when you need to quickly output various STL containers. The stream operators are only available if the contained types have stream operators.

This facility should not be used to output data for later input: this is essentially a "write-only" facility meant for diagnostics or human-readable display; the formats described herein are subject to change without notice.

Definition in file ostreamMethods.h.