![]() |
C++ Library Extensions 2022.12.09
To help learn modern C++ programming
|
Stream output operators are defined. More...
Namespaces | |
namespace | hidden |
Implementations in this scope is meant NOT to be accessed directly by the client. | |
Classes | |
struct | flush_stream |
struct | new_line |
struct | new_Line |
struct | new_line_flush |
struct | new_Line_flush |
class | string_stream |
Functions | |
template<typename CharType , typename T > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const tpf::bitwise::bit_pattern< T > &a) |
template<typename CharType , typename... ElementTypes> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const tpf::types::any< ElementTypes... > &a) |
template<typename CharType , typename T > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::optional< T > &opt) |
template<typename CharType , auto N, auto D> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::ratio< N, D > &r) |
template<typename CharType > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::byte &b) |
template<typename CharType , auto IndexValue> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::indexer_t< IndexValue > &indexer) |
template<typename CharType , auto RowValue, auto ColumnValue> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::indexer_2d_t< RowValue, ColumnValue > &indexer) |
template<typename CharType , auto HeightValue, auto RowValue, auto ColumnValue> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::indexer_3d_t< HeightValue, RowValue, ColumnValue > &indexer) |
template<typename CharType , typename Type , int Tag> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::tag_type< Type, Tag > &ncw) |
template<typename CharType , typename Type > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::initializer_list< Type > &init_list) |
template<typename CharType , template< auto... >class ContainerType, auto... Ints> | |
std::basic_ostream< CharType > & | operator>> (std::basic_ostream< CharType > &os, const ContainerType< Ints... > &seq) |
template<typename CharType , typename T , auto FirstValue, auto LastValue, size_t CountValue, bool stack_order> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::hidden::st_sequence_info< T, FirstValue, LastValue, CountValue, stack_order > &seq) |
template<typename CharType , typename T , T... Ints> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::integer_sequence< T, Ints... > &seq) |
template<typename CharType , typename T , T... Ints> | |
std::basic_ostream< CharType > & | operator>> (std::basic_ostream< CharType > &os, const std::integer_sequence< T, Ints... > &seq) |
template<typename CharType > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, types::TemplateCategory tc) |
std::ostream & | operator<< (std::ostream &os, const std::wstring &str) |
Feed std::wstring to std::ostream. More... | |
std::ostream & | operator<< (std::ostream &os, const wchar_t *str) |
Feed const wchar_t* to std::ostream. More... | |
std::wostream & | operator<< (std::wostream &os, const std::string &str) |
Feed std::string to std::wostream. More... | |
template<typename CharType , typename FirstType , typename SecondType > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::pair< FirstType, SecondType > &pr) |
Feed std::pair<FirstType, SecondType> to std::basic_ostream<CharType> More... | |
template<typename CharType , typename... Types> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::tuple< Types... > &tuple) |
template<typename CharType , typename Type , typename... Types> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::variant< Type, Types... > &variant) |
template<typename CharType , typename Type_1 , typename Type_2 > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::unique_ptr< Type_1, Type_2 > &ptr) |
template<typename CharType , typename Type > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::shared_ptr< Type > &ptr) |
template<typename CharType , typename ElementType , size_t Size> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::array< ElementType, Size > &array) |
template<typename CharType , template< typename, typename... > class ContainerType, typename Type , typename... Types> | |
hidden::enable_stream_if_not_string_t< CharType, ContainerType, Type, Types... > | operator<< (std::basic_ostream< CharType > &os, const ContainerType< Type, Types... > &container) |
Feed STL container to std::basic_stream<CharType> More... | |
template<typename CharType , typename FirstType , typename SecondType > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::array_wrapper_t< FirstType, SecondType > &array) |
template<typename CharType , typename... Types> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::type_list_t< Types... > &typelist) |
template<typename CharType > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::exception &expt) |
template<typename CharType , template< typename, typename... > class ContainerType, typename... ElementTypes> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::hidden::container_of_variants_class< ContainerType, ElementTypes... > &container) |
template<typename CharType , template< typename, typename... > class ContainerType, typename... ElementTypes> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::hidden::container_of_tuples_class< ContainerType, ElementTypes... > &container) |
template<typename CharType , typename ContainerType > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::reverse_st< ContainerType > &container) |
template<typename CharType , size_t ElementCount> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const std::byte(&array)[ElementCount]) |
template<typename CharType , typename ElementType , size_t ElementCount> | |
std::enable_if_t<!types::is_char_v< ElementType >, std::basic_ostream< CharType > & > | operator<< (std::basic_ostream< CharType > &os, const ElementType(&array)[ElementCount]) |
template<typename CharType , typename ElementType , size_t ElementCount> | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &os, const types::reverse_st< ElementType(&)[ElementCount]> &container) |
constexpr new_line | nl () |
constexpr new_Line | nL () |
constexpr flush_stream | flush () |
constexpr new_line_flush | endl () |
constexpr new_Line_flush | endL () |
template<typename T , typename = std::enable_if_t<!(types::is_tag_type_v<T> || types::is_numbers_type_v<T>)>> | |
sstream & | operator>> (sstream &os, T arg) |
template<template< typename... > class TemplateType, typename... Types> | |
sstream & | operator>> (sstream &os, const TemplateType< Types... > &arg) |
template<typename Type , int Tag> | |
sstream & | operator>> (sstream &os, const types::tag_type< Type, Tag > &) |
template<template< auto... > class ContainerType, auto... Ints> | |
sstream & | operator>> (sstream &os, const ContainerType< Ints... > &arg) |
template<template< typename T, T... > class TemplateType, typename Type , Type... Args, typename = std::enable_if_t<!types::is_tag_type_v<TemplateType<Type, Args...>>>> | |
sstream & | operator>> (sstream &os, const TemplateType< Type, Args... > &) |
template<typename Type > | |
string_stream & | operator< (string_stream &os, Type &&arg) |
template<typename Type > | |
string_stream & | operator> (string_stream &os, Type &&arg) |
template<typename Type , size_t CacheSize> | |
sstream & | operator<< (sstream &os, const tpf::parallel::cache_wrapper< Type, CacheSize > &cw) |
Stream output operators are defined.
|
constexpr |
|
constexpr |
Definition at line 841 of file tpf_output.hpp.
|
constexpr |
Definition at line 839 of file tpf_output.hpp.
|
constexpr |
|
constexpr |
Definition at line 838 of file tpf_output.hpp.
string_stream & tpf::output::operator< | ( | string_stream & | os, |
Type && | arg | ||
) |
Definition at line 1020 of file tpf_output.hpp.
sstream & tpf::output::operator<< | ( | sstream & | os, |
const tpf::parallel::cache_wrapper< Type, CacheSize > & | cw | ||
) |
hidden::enable_stream_if_not_string_t< CharType, ContainerType, Type, Types... > tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const ContainerType< Type, Types... > & | container | ||
) |
Feed STL container to std::basic_stream<CharType>
CharType | for std::basic_stream<CharType> |
ContainerType | for STL container |
Type | for the first template parameter |
Types | for the rest of the template parameter |
os | for output stream, either std::ostream or std::wostream |
container | of STL container class, ContainerType<Type, Types...> |
Definition at line 287 of file tpf_output.hpp.
std::enable_if_t<!types::is_char_v< ElementType >, std::basic_ostream< CharType > & > tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const ElementType(&) | array[ElementCount] | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::array< ElementType, Size > & | array | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::byte & | b | ||
) |
Definition at line 974 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::byte(&) | array[ElementCount] | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::exception & | expt | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::initializer_list< Type > & | init_list | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::integer_sequence< T, Ints... > & | seq | ||
) |
Definition at line 128 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::optional< T > & | opt | ||
) |
Definition at line 1026 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::pair< FirstType, SecondType > & | pr | ||
) |
Feed std::pair<FirstType, SecondType> to std::basic_ostream<CharType>
CharType | for std::basic_ostream<CharType> |
FirstType | for std::pair<FirstType, SecondType> |
SecondType | for std::pair<FirstType, SecondType> |
os | — an instance of std::basic_stream<CharType> |
pr | — an instance of std::pair<FirstType, SecondType> |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::ratio< N, D > & | r | ||
) |
Definition at line 974 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::shared_ptr< Type > & | ptr | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::tuple< Types... > & | tuple | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::unique_ptr< Type_1, Type_2 > & | ptr | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const std::variant< Type, Types... > & | variant | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const tpf::bitwise::bit_pattern< T > & | a | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const tpf::types::any< ElementTypes... > & | a | ||
) |
Definition at line 1026 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::array_wrapper_t< FirstType, SecondType > & | array | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::hidden::container_of_tuples_class< ContainerType, ElementTypes... > & | container | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::hidden::container_of_variants_class< ContainerType, ElementTypes... > & | container | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::hidden::st_sequence_info< T, FirstValue, LastValue, CountValue, stack_order > & | seq | ||
) |
Definition at line 128 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::indexer_2d_t< RowValue, ColumnValue > & | indexer | ||
) |
Definition at line 974 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::indexer_3d_t< HeightValue, RowValue, ColumnValue > & | indexer | ||
) |
Definition at line 974 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::indexer_t< IndexValue > & | indexer | ||
) |
Definition at line 974 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::reverse_st< ContainerType > & | container | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::reverse_st< ElementType(&)[ElementCount]> & | container | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::tag_type< Type, Tag > & | ncw | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
const types::type_list_t< Types... > & | typelist | ||
) |
Definition at line 287 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator<< | ( | std::basic_ostream< CharType > & | os, |
types::TemplateCategory | tc | ||
) |
Definition at line 207 of file tpf_output.hpp.
|
inline |
Feed std::wstring to std::ostream.
os | for std::ostream |
str | for std::wstring type |
Definition at line 261 of file tpf_output.hpp.
|
inline |
Feed const wchar_t* to std::ostream.
os | of type std::ostream |
str | of const wchar_t* type |
Definition at line 274 of file tpf_output.hpp.
|
inline |
Feed std::string to std::wostream.
os | of type std::wostream type |
str | of std::string type |
Definition at line 287 of file tpf_output.hpp.
string_stream & tpf::output::operator> | ( | string_stream & | os, |
Type && | arg | ||
) |
Definition at line 1026 of file tpf_output.hpp.
sstream & tpf::output::operator>> | ( | sstream & | os, |
const TemplateType< Types... > & | arg | ||
) |
Definition at line 989 of file tpf_output.hpp.
sstream & tpf::output::operator>> | ( | sstream & | os, |
const types::tag_type< Type, Tag > & | |||
) |
Definition at line 999 of file tpf_output.hpp.
sstream & tpf::output::operator>> | ( | sstream & | os, |
T | arg | ||
) |
Definition at line 981 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator>> | ( | std::basic_ostream< CharType > & | os, |
const ContainerType< Ints... > & | seq | ||
) |
Definition at line 175 of file tpf_output.hpp.
std::basic_ostream< CharType > & tpf::output::operator>> | ( | std::basic_ostream< CharType > & | os, |
const std::integer_sequence< T, Ints... > & | seq | ||
) |
Definition at line 207 of file tpf_output.hpp.