cesium-native
0.41.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) |
Converts from std::string to a double.
Definition at line 516 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 525 of file MetadataConversions.h.