|
cesium-native 0.62.0
|
Converts from one integer type to another. More...
#include <CesiumGltf/MetadataConversions.h>
Static Public Member Functions | |
| static std::optional< TTo > | convert (TFrom from) |
| Converts a value of the given integer to another integer type. If the integer cannot be losslessly converted to the desired type, std::nullopt is returned. | |
| static std::optional< TTo > | convert (TFrom) |
Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt. | |
Converts from one integer type to another.
Definition at line 133 of file MetadataConversions.h.
|
inlinestatic |
Converts a value of the given integer to another integer type. If the integer cannot be losslessly converted to the desired type, std::nullopt is returned.
| from | The integer value to convert from. |
Definition at line 147 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.