|
Babel
1
The voip software that only works on your local network
|
Provides custom string conversion functions as alternatives to std::to_string.
More...
#include <map>#include <set>#include <vector>#include <string>#include <utility>#include <unordered_set>#include <unordered_map>

Go to the source code of this file.
Namespaces | |
| namespace | Recoded |
Functions | |
| const std::string | Recoded::myToString (bool value) |
| Converts a boolean value to its string representation. | |
| template<typename T > | |
| const std::string | Recoded::myToString (const T &value) |
| Converts a numeric value to its string representation. | |
| template<typename T1 , typename T2 > | |
| const std::string | Recoded::myToString (const std::pair< T1, T2 > &value) |
Converts a std::pair to its string representation. | |
| template<typename Key , typename Value > | |
| std::string | Recoded::myToString (const std::map< Key, Value > &map) |
| Converts a std::map to a string representation. | |
| template<typename T > | |
| std::string | Recoded::myToString (const std::set< T > &set) |
| Converts a std::set to a string representation. | |
| template<typename T > | |
| const std::string | Recoded::myToString (const std::vector< T > &set) |
| Converts a std::vector to a string representation. | |
| template<typename Key , typename Value > | |
| std::string | Recoded::myToString (const std::unordered_map< Key, Value > &map) |
| Converts a std::unordered_map to a string representation. | |
| template<typename T > | |
| const std::string | Recoded::myToString (const std::unordered_set< T > &set) |
| Converts a std::unordered_set to a string representation. | |
Provides custom string conversion functions as alternatives to std::to_string.
This header defines the myToString functions, which extend the capabilities of std::to_string. These functions include specialized handling for boolean values and generic handling for std::pair objects, making them suitable for more complex use cases.
Definition in file ToString.hpp.