cesium-native 0.48.0
|
Converts from std::string to a double. More...
#include <CesiumGltf/MetadataConversions.h>
Static Public Member Functions | |
static std::optional< double > | convert (const std::string &from) |
static std::optional< double > | convert (std::string) |
Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt . | |
Converts from std::string to a double.
Definition at line 515 of file MetadataConversions.h.
|
inlinestatic |
Converts a std::string to a double. This assumes that the entire std::string represents the number, not just a part of it.
This returns std::nullopt if no number is parsed from the string.
from | The std::string to parse from. |
Definition at line 524 of file MetadataConversions.h.
|
inlinestatic |
Converts between TFrom
and TTo
where no actual conversion is defined, returning std::nullopt
.
Definition at line 26 of file MetadataConversions.h.