DGtal 1.3.0
Loading...
Searching...
No Matches
Static Public Member Functions
DGtal::detail::ValueConverter< std::string, float > Struct Reference

Specialized definitions of a class for converting type X toward type Y. More...

#include <DGtal/helpers/Parameters.h>

Static Public Member Functions

static float cast (const std::string &value)
 

Detailed Description

Specialized definitions of a class for converting type X toward type Y.

Definition at line 81 of file Parameters.h.

Member Function Documentation

◆ cast()

static float DGtal::detail::ValueConverter< std::string, float >::cast ( const std::string &  value)
inlinestatic

Definition at line 82 of file Parameters.h.

83 {
84 // note (JOL): cannot use atof (C) since it uses a different locale as program_options (C++).
85 float val;
86 std::istringstream iss( value );
87 iss >> val;
88 return val;
89 }

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