TrinityCore
Trinity::Impl::StringConvertImpl::For< T, std::enable_if_t< std::is_floating_point_v< T > > > Struct Template Reference

#include <StringConvert.h>

Static Public Member Functions

static Optional< T > FromString (std::string_view str, std::chars_format fmt=std::chars_format())
 
static Optional< T > FromString (std::string_view str, int base)
 
static std::string ToString (T val)
 

Detailed Description

template<typename T>
struct Trinity::Impl::StringConvertImpl::For< T, std::enable_if_t< std::is_floating_point_v< T > > >

Definition at line 178 of file StringConvert.h.

Member Function Documentation

◆ FromString() [1/2]

template<typename T >
static Optional< T > Trinity::Impl::StringConvertImpl::For< T, std::enable_if_t< std::is_floating_point_v< T > > >::FromString ( std::string_view  str,
int  base 
)
inlinestatic

Definition at line 211 of file StringConvert.h.

◆ FromString() [2/2]

template<typename T >
static Optional< T > Trinity::Impl::StringConvertImpl::For< T, std::enable_if_t< std::is_floating_point_v< T > > >::FromString ( std::string_view  str,
std::chars_format  fmt = std::chars_format() 
)
inlinestatic

Definition at line 180 of file StringConvert.h.

+ Here is the call graph for this function:

◆ ToString()

template<typename T >
static std::string Trinity::Impl::StringConvertImpl::For< T, std::enable_if_t< std::is_floating_point_v< T > > >::ToString ( val)
inlinestatic

Definition at line 221 of file StringConvert.h.


The documentation for this struct was generated from the following file: