7#ifndef PXR_BASE_TF_SAFE_TYPE_COMPARE_H
8#define PXR_BASE_TF_SAFE_TYPE_COMPARE_H
18PXR_NAMESPACE_OPEN_SCOPE
36template <
typename TO,
typename FROM>
39 return dynamic_cast<TO
>(ptr);
42PXR_NAMESPACE_CLOSE_SCOPE
bool TfSafeTypeCompare(const std::type_info &t1, const std::type_info &t2)
Safely compare std::type_info structures.
TO TfSafeDynamic_cast(FROM *ptr)
Safely perform a dynamic cast.