|
cesium-native 0.62.0
|
Converts from std::string_view to an integer. More...
#include <CesiumGltf/MetadataConversions.h>
Static Public Member Functions | |
| static std::optional< TTo > | convert (const std::string_view &from) |
| Converts the contents of a std::string_view to an integer. This assumes that the entire std::string_view represents the number, not just a part of it. | |
| static std::optional< TTo > | convert (std::string_view) |
Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt. | |
Converts from std::string_view to an integer.
Definition at line 303 of file MetadataConversions.h.
|
inlinestatic |
Converts the contents of a std::string_view to an integer. This assumes that the entire std::string_view 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_view to parse from. |
Definition at line 316 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.