DGtal 2.1.0
Loading...
Searching...
No Matches
DGtal::detail::ValueConverter< std::string, double > Struct Reference

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

#include <DGtal/helpers/Parameters.h>

Inheritance diagram for DGtal::detail::ValueConverter< std::string, double >:
[legend]

Static Public Member Functions

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

Detailed Description

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

Definition at line 68 of file Parameters.h.

Member Function Documentation

◆ cast()

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

Definition at line 69 of file Parameters.h.

70 {
71 // note (JOL): cannot use atof (C) since it uses a different locale as program_options (C++).
72 double val;
74 iss >> val;
75 return val;
76 }
Generic definition of a class for converting type X toward type Y.
Definition Parameters.h:56

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