ttg::iostream Namespace Reference
Functions | |
I/O operators for standard types | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &s, const std::complex< T > &c) |
default printing of std::complex More... | |
template<typename T , typename U > | |
std::ostream & | operator<< (std::ostream &s, const std::pair< T, U > &p) |
default printing of std::pair More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &s, const std::vector< T > &c) |
default printing of std::vector More... | |
template<typename T , std::size_t N> | |
std::enable_if<!std::is_same< T, char >::value, std::ostream & >::type | operator<< (std::ostream &s, const std::array< T, N > &v) |
default printing of std::array More... | |
template<typename T , std::size_t N> | |
std::enable_if<!std::is_same< T, char >::value, std::ostream & >::type | operator<< (std::ostream &s, const T(&v)[N]) |
default printing of fixed dimension arrays. More... | |
Function Documentation
◆ operator<<() [1/5]
template<typename T , std::size_t N>
std::enable_if<!std::is_same<T, char>::value, std::ostream &>::type ttg::iostream::operator<< | ( | std::ostream & | s, |
const std::array< T, N > & | v | ||
) |
◆ operator<<() [2/5]
template<typename T >
std::ostream& ttg::iostream::operator<< | ( | std::ostream & | s, |
const std::complex< T > & | c | ||
) |
◆ operator<<() [3/5]
template<typename T , typename U >
std::ostream& ttg::iostream::operator<< | ( | std::ostream & | s, |
const std::pair< T, U > & | p | ||
) |
◆ operator<<() [4/5]
template<typename T >
std::ostream& ttg::iostream::operator<< | ( | std::ostream & | s, |
const std::vector< T > & | c | ||
) |
◆ operator<<() [5/5]
template<typename T , std::size_t N>
std::enable_if<!std::is_same<T, char>::value, std::ostream &>::type ttg::iostream::operator<< | ( | std::ostream & | s, |
const T(&) | v[N] | ||
) |
default printing of fixed dimension arrays.
STL I/O already does char (thus the enable_if
business).
- Template Parameters
-
T Type of data in the array. N Size of the array.
- Parameters
-
[in,out] s The output stream. [in] v The array.
- Returns
- The output stream (for chaining).