The Battle for Wesnoth  1.19.4+dev
Public Member Functions | List of all members
implementation::lexical_caster< To, std::string, std::enable_if_t< std::is_floating_point_v< To > > > Struct Template Reference

Specialized conversion class. More...

#include <lexical_cast.hpp>

Public Member Functions

To operator() (const std::string &value, utils::optional< To > fallback) const
 

Detailed Description

template<class To>
struct implementation::lexical_caster< To, std::string, std::enable_if_t< std::is_floating_point_v< To > > >

Specialized conversion class.

Specialized for returning a floating point type from a std::string.

Definition at line 342 of file lexical_cast.hpp.

Member Function Documentation

◆ operator()()

template<class To >
To implementation::lexical_caster< To, std::string, std::enable_if_t< std::is_floating_point_v< To > > >::operator() ( const std::string &  value,
utils::optional< To >  fallback 
) const
inline

Definition at line 348 of file lexical_cast.hpp.

References DEBUG_THROW.


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