ADUL
Collection of reusable C++ utilities
Loading...
Searching...
No Matches
adul::utils Namespace Reference

small utilities module More...

Functions

template<typename T >
convert_string (const std::string &str)
 converts std::string into other type
 
template<>
std::string convert_string< std::string > (const std::string &str)
 

Detailed Description

small utilities module

namespace module which includes different small functions or classes

Function Documentation

◆ convert_string()

template<typename T >
T adul::utils::convert_string ( const std::string & str)

converts std::string into other type

converts given std::string into thy T type using std::istringstream

Template Parameters
T

type to which std::string will be converted

type T must be supported by sdt::basic_stringstream operator>>

◆ convert_string< std::string >()

template<>
std::string adul::utils::convert_string< std::string > ( const std::string & str)
inline