cphot 0.1
A C++ tool for computing photometry from spectra.
pretty_print Namespace Reference

A pretty printing library for C++ containers. More...

Namespaces

 detail
 

Classes

struct  array_wrapper_n
 
struct  bucket_print_wrapper
 
struct  custom_delims
 
struct  custom_delims_base
 
struct  custom_delims_wrapper
 
struct  delimiters
 
struct  delimiters< ::std::multiset< T, TComp, TAllocator >, char >
 
struct  delimiters< ::std::multiset< T, TComp, TAllocator >, wchar_t >
 
struct  delimiters< ::std::pair< T1, T2 >, wchar_t >
 
struct  delimiters< ::std::set< T, TComp, TAllocator >, char >
 
struct  delimiters< ::std::set< T, TComp, TAllocator >, wchar_t >
 
struct  delimiters< ::std::tuple< Args... >, wchar_t >
 
struct  delimiters< ::std::unordered_multiset< T, THash, TEqual, TAllocator >, char >
 
struct  delimiters< ::std::unordered_multiset< T, THash, TEqual, TAllocator >, wchar_t >
 
struct  delimiters< ::std::unordered_set< T, THash, TEqual, TAllocator >, char >
 
struct  delimiters< ::std::unordered_set< T, THash, TEqual, TAllocator >, wchar_t >
 
struct  delimiters< std::pair< T1, T2 >, char >
 
struct  delimiters< std::tuple< Args... >, char >
 
struct  delimiters< T, char >
 
struct  delimiters< T, wchar_t >
 
struct  delimiters_values
 
struct  is_container
 
struct  is_container< char[N]>
 
struct  is_container< std::pair< T1, T2 > >
 
struct  is_container< std::tuple< Args... > >
 
struct  is_container< std::valarray< T > >
 
struct  is_container< T[N]>
 
struct  print_container_helper
 

Functions

template<typename T , typename TChar , typename TCharTraits , typename TDelimiters >
std::basic_ostream< TChar, TCharTraits > & operator<< (std::basic_ostream< TChar, TCharTraits > &stream, const print_container_helper< T, TChar, TCharTraits, TDelimiters > &helper)
 
template<typename TChar , typename TCharTraits , typename Delims >
std::basic_ostream< TChar, TCharTraits > & operator<< (std::basic_ostream< TChar, TCharTraits > &s, const custom_delims< Delims > &p)
 

Detailed Description

A pretty printing library for C++ containers.

Just add "#include "prettyprint.hpp" to your source file and make sure that prettyprint.hpp is findable.

https://github.com/louisdx/cxx-prettyprint/blob/master/prettyprint.hpp

Function Documentation

◆ operator<<() [1/2]

template<typename TChar , typename TCharTraits , typename Delims >
std::basic_ostream<TChar, TCharTraits>& pretty_print::operator<< ( std::basic_ostream< TChar, TCharTraits > &  s,
const custom_delims< Delims > &  p 
)
inline

Definition at line 364 of file prettyprint.hpp.

◆ operator<<() [2/2]

template<typename T , typename TChar , typename TCharTraits , typename TDelimiters >
std::basic_ostream<TChar, TCharTraits>& pretty_print::operator<< ( std::basic_ostream< TChar, TCharTraits > &  stream,
const print_container_helper< T, TChar, TCharTraits, TDelimiters > &  helper 
)
inline

Definition at line 219 of file prettyprint.hpp.