The Battle for Wesnoth  1.17.0-dev
Public Member Functions | List of all members
implementation::lexical_caster< To, From, std::enable_if_t< std::is_floating_point_v< To > >, std::enable_if_t< std::is_same_v< From, const char * >||std::is_same_v< From, char * > > > Struct Template Reference

Specialized conversion class. More...

#include <lexical_cast.hpp>

Public Member Functions

To operator() (From value, std::optional< To > fallback) const
 

Detailed Description

template<class To, class From>
struct implementation::lexical_caster< To, From, std::enable_if_t< std::is_floating_point_v< To > >, std::enable_if_t< std::is_same_v< From, const char * >||std::is_same_v< From, char * > > >

Specialized conversion class.

Specialized for returning a floating point type from a (const) char*.

Definition at line 304 of file lexical_cast.hpp.

Member Function Documentation

◆ operator()()

template<class To , class From >
To implementation::lexical_caster< To, From, std::enable_if_t< std::is_floating_point_v< To > >, std::enable_if_t< std::is_same_v< From, const char * >||std::is_same_v< From, char * > > >::operator() ( From  value,
std::optional< To >  fallback 
) const
inline

Definition at line 311 of file lexical_cast.hpp.

References DEBUG_THROW, and lexical_cast().


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