cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumGltf::MetadataConversions< double, std::string > Struct Reference

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)
 

Detailed Description

Converts from std::string to a double.

Definition at line 523 of file MetadataConversions.h.

Member Function Documentation

◆ convert()

static std::optional< double > CesiumGltf::MetadataConversions< double, std::string >::convert ( const std::string & from)
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.

Parameters
fromThe std::string to parse from.

Definition at line 532 of file MetadataConversions.h.


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