cesium-native  0.41.0
CesiumGltf::MetadataConversions< float, std::string > Struct Reference

Converts from a std::string to a float. More...

#include <CesiumGltf/MetadataConversions.h>

Static Public Member Functions

static std::optional< float > convert (const std::string &from)
 Converts a std::string to a float. This assumes that the entire std::string represents the number, not just a part of it. More...
 

Detailed Description

Converts from a std::string to a float.

Definition at line 408 of file MetadataConversions.h.

Member Function Documentation

◆ convert()

static std::optional<float> CesiumGltf::MetadataConversions< float, std::string >::convert ( const std::string &  from)
inlinestatic

Converts a std::string to a float. 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 417 of file MetadataConversions.h.


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