Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
Utilities Namespace Reference

Functions

std::ostream & operator<< (std::ostream &os, const bool &item)
 Outputs a boolean value to the given output stream using a custom string representation.
 
template<typename T1 , typename T2 >
std::ostream & operator<< (std::ostream &os, const std::pair< T1, T2 > &item)
 Outputs a pair of items to the given output stream using a custom string representation.
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &set)
 Outputs a vector of items to the given output stream using a custom string representation.
 
template<typename Key , typename Value >
std::ostream & operator<< (std::ostream &os, const std::unordered_map< Key, Value > &map)
 Outputs an unordered_map of items to the given output stream using a custom string representation.
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const std::set< T > &set)
 Outputs a set of items to the given output stream using a custom string representation.
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const std::unordered_set< T > &set)
 Outputs an unordered_set of items to the given output stream using a custom string representation.
 

Function Documentation

◆ operator<<() [1/6]

std::ostream & Utilities::operator<< ( std::ostream & os,
const bool & item )
inline

Outputs a boolean value to the given output stream using a custom string representation.

This function uses the custom Recoded::myToString function to convert the boolean value to a string ("true" or "false") and then inserts the result into the output stream.

Parameters
osThe output stream to which the boolean value will be written.
itemThe boolean value to output.
Returns
The modified output stream with the boolean's string representation appended.

Definition at line 36 of file OperatorRebind.hpp.

◆ operator<<() [2/6]

template<typename T1 , typename T2 >
std::ostream & Utilities::operator<< ( std::ostream & os,
const std::pair< T1, T2 > & item )
inline

Outputs a pair of items to the given output stream using a custom string representation.

This function uses the custom Recoded::myToString function to convert the pair to a string and then inserts the result into the output stream.

Template Parameters
T1The type of the first element in the pair.
T2The type of the second element in the pair.
Parameters
osThe output stream to which the pair will be written.
itemThe pair of items to output.
Returns
The modified output stream with the pair's string representation appended.

Definition at line 57 of file OperatorRebind.hpp.

◆ operator<<() [3/6]

template<typename T >
std::ostream & Utilities::operator<< ( std::ostream & os,
const std::set< T > & set )
inline

Outputs a set of items to the given output stream using a custom string representation.

This function uses the custom Recoded::myToString function to convert the set to a string and then inserts the result into the output stream.

Template Parameters
TThe type of the elements in the set.
Parameters
osThe output stream to which the set will be written.
itemThe set of items to output.
Returns
The modified output stream with the set's string representation appended.

Definition at line 117 of file OperatorRebind.hpp.

◆ operator<<() [4/6]

template<typename Key , typename Value >
std::ostream & Utilities::operator<< ( std::ostream & os,
const std::unordered_map< Key, Value > & map )
inline

Outputs an unordered_map of items to the given output stream using a custom string representation.

This function uses the custom Recoded::myToString function to convert the unordered_map to a string and then inserts the result into the output stream.

Template Parameters
TThe type of the elements in the unordered_map.
Parameters
osThe output stream to which the unordered_map will be written.
itemThe unordered_map of items to output.
Returns
The modified output stream with the unordered_map's string representation appended.

Definition at line 97 of file OperatorRebind.hpp.

◆ operator<<() [5/6]

template<typename T >
std::ostream & Utilities::operator<< ( std::ostream & os,
const std::unordered_set< T > & set )
inline

Outputs an unordered_set of items to the given output stream using a custom string representation.

This function uses the custom Recoded::myToString function to convert the unordered_set to a string and then inserts the result into the output stream.

Template Parameters
TThe type of the elements in the unordered_set.
Parameters
osThe output stream to which the unordered_set will be written.
itemThe unordered_set of items to output.
Returns
The modified output stream with the unordered_set's string representation appended.

Definition at line 137 of file OperatorRebind.hpp.

◆ operator<<() [6/6]

template<typename T >
std::ostream & Utilities::operator<< ( std::ostream & os,
const std::vector< T > & set )
inline

Outputs a vector of items to the given output stream using a custom string representation.

This function uses the custom Recoded::myToString function to convert the vector to a string and then inserts the result into the output stream.

Template Parameters
TThe type of the elements in the vector.
Parameters
osThe output stream to which the vector will be written.
itemThe vector of items to output.
Returns
The modified output stream with the vector's string representation appended.

Definition at line 77 of file OperatorRebind.hpp.