OpenVDB 12.0.0
 
Loading...
Searching...
No Matches
match_const< T, const ReferenceT > Struct Template Reference

Template specialization used to transfer the const-ness of a reference type to another type. More...

#include <nanovdb/util/Util.h>

Public Types

using type = const typename remove_const<T>::type
 
using type
 

Detailed Description

template<typename T, typename ReferenceT>
struct nanovdb::util::match_const< T, const ReferenceT >

Template specialization used to transfer the const-ness of a reference type to another type.

Template Parameters
TType that will adopt the const-ness of the reference type
ReferenceTReference type that is const

match_const<const int, const float>::type = const int match_const<int, const float>::type = const int

Member Typedef Documentation

◆ type [1/2]

using type

◆ type [2/2]

template<typename T, typename ReferenceT>
using type = const typename remove_const<T>::type