tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches

etl::basic_inplace_string class template More...

Classes

struct  char_traits< CharT >
 The char_traits class is a traits class template that abstracts basic character and string operations for a given character type. More...
 
struct  char_traits< char >
 Specializations of char_traits for type char. More...
 
struct  char_traits< char16_t >
 Specializations of char_traits for type char16_t. More...
 
struct  char_traits< char32_t >
 Specializations of char_traits for type char32_t. More...
 
struct  char_traits< char8_t >
 Specializations of char_traits for type char8_t. More...
 
struct  char_traits< wchar_t >
 Specializations of char_traits for type wchar_t. More...
 

Functions

template<size_t Capacity>
constexpr auto stod (inplace_string< Capacity > const &str, size_t *pos=nullptr) -> double
 Interprets a floating point value in a string str.
 
template<size_t Capacity>
constexpr auto stof (inplace_string< Capacity > const &str, size_t *pos=nullptr) -> float
 Interprets a floating point value in a string str.
 
template<size_t Capacity>
constexpr auto stold (inplace_string< Capacity > const &str, size_t *pos=nullptr) -> long double
 Interprets a floating point value in a string str.
 

Detailed Description

etl::basic_inplace_string class template

Function Documentation

◆ stod()

template<size_t Capacity>
auto stod ( inplace_string< Capacity > const & str,
size_t * pos = nullptr ) -> double
nodiscardconstexpr

Interprets a floating point value in a string str.

Parameters
strThe string to convert.
posPointer to integer to store the number of characters used.
Returns
The string converted to the specified floating point type.

◆ stof()

template<size_t Capacity>
auto stof ( inplace_string< Capacity > const & str,
size_t * pos = nullptr ) -> float
nodiscardconstexpr

Interprets a floating point value in a string str.

Parameters
strThe string to convert.
posPointer to integer to store the number of characters used.
Returns
The string converted to the specified floating point type.

◆ stold()

template<size_t Capacity>
auto stold ( inplace_string< Capacity > const & str,
size_t * pos = nullptr ) -> long double
nodiscardconstexpr

Interprets a floating point value in a string str.

Parameters
strThe string to convert.
posPointer to integer to store the number of characters used.
Returns
The string converted to the specified floating point type.