HiPipe  0.7.0
C++17 data pipeline with Python bindings.
Functions
String utilities.

Functions

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

Detailed Description

Function Documentation

◆ string_to()

template<typename T >
T hipipe::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 32 of file string.hpp.

◆ to_string()

template<typename T >
std::string hipipe::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 90 of file string.hpp.