cesium-native 0.48.0
Loading...
Searching...
No Matches
CesiumGltf::MetadataConversions< T, T > Struct Template Reference

Trivially converts any type to itself. More...

#include <CesiumGltf/MetadataConversions.h>

Static Public Member Functions

static std::optional< T > convert (T from)
 Converts an instance of T to an instance of T, always returning the same value that was passed in.
 
static std::optional< T > convert (T)
 Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt.
 

Detailed Description

template<typename T>
struct CesiumGltf::MetadataConversions< T, T >

Trivially converts any type to itself.

Definition at line 32 of file MetadataConversions.h.

Member Function Documentation

◆ convert() [1/2]

template<typename T>
static std::optional< T > CesiumGltf::MetadataConversions< T, T >::convert ( T from)
inlinestatic

Converts an instance of T to an instance of T, always returning the same value that was passed in.

Definition at line 37 of file MetadataConversions.h.

◆ convert() [2/2]

static std::optional< T > CesiumGltf::MetadataConversions< T, T, void >::convert ( T )
inlinestatic

Converts between TFrom and TTo where no actual conversion is defined, returning std::nullopt.

Definition at line 26 of file MetadataConversions.h.


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