|
cesium-native 0.62.0
|
Converts from a boolean to an integer type. More...
#include <CesiumGltf/MetadataConversions.h>
Static Public Member Functions | |
| static std::optional< TTo > | convert (bool from) |
| Converts a boolean to an integer. This returns 1 for true, 0 for false. | |
| static std::optional< TTo > | convert (bool) |
Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt. | |
Converts from a boolean to an integer type.
Definition at line 336 of file MetadataConversions.h.
|
inlinestatic |
Converts a boolean to an integer. This returns 1 for true, 0 for false.
| from | The boolean value to be converted. |
Definition at line 346 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.