cxtream  0.5.1
C++17 data pipeline with Python bindings.
Functions
String utilities.

Functions

template<typename T >
cxtream::utility::string_to (const std::string &str)
 Convert std::string to the given type. More...
 
template<typename T >
std::string cxtream::utility::to_string (const T &value)
 Convert the given type to std::string. More...
 

Detailed Description

Function Documentation

◆ string_to()

template<typename T >
T cxtream::utility::string_to ( const std::string &  str)

Convert std::string to the given type.

This function is either specialized for the given type or internally uses boost::lexical_cast.

Exceptions
std::ios_base::failureIf the conversion fails.

Definition at line 33 of file string.hpp.

◆ to_string()

template<typename T >
std::string cxtream::utility::to_string ( const T &  value)

Convert the given type to std::string.

This function is either overloaded for the given type or internally uses boost::lexical_cast.

Exceptions
std::ios_base::failureIf the conversion fails.

Definition at line 91 of file string.hpp.