LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Class defining the dereferenced type of the specified type. More...
#include "Dereference.h"
Public Types | |
using | type = T |
Class defining the dereferenced type of the specified type.
T | the type to be tested for dereferenciation |
Usage:
static_assert( std::is_same<typename lar::util::dereferenced_type<int>::type, int>, "error" ); static_assert( std::is_same<typename lar::util::dereferenced_type<int*>::type, int&>, "error" );
The type is contained in the type
member of the class. The type
is precisely what is obtained by dereferencing T (that is often a reference to a type).
The interaction with const T
types and with constant dereference operators (T::operator* () const
) has not been investigated.
Definition at line 205 of file Dereference.h.
|
inherited |
Definition at line 97 of file Dereference.h.