Template Function ouster::sdk::osf::metadata_pointer_as
Defined in File metadata.h
Function Documentation
Safe and convenient cast of shared_ptr<MetadataEntry> to concrete derived class using either shortcut (dynamic_pointer_cast) when it’s save to do so or reconstructs a new copy of the object from underlying data.
- Template Parameters:
MetadataDerived – The cpp type of the derived object.
MetadataBase – The cpp type of the metadata base.
- Parameters:
m – [in] The MetadataBase to convert to MetadataDerived.
- Returns:
The MetadataBase cast as a MetadataDerived pointer.