LibreOffice Module onlineupdate (master) 1
|
Produces the pointed-to type if a pointer is provided, else returns the input type. More...
#include <TypeTraits.h>
Additional Inherited Members | |
Public Types inherited from mozilla::detail::RemovePointerHelper< T, RemoveCV< T >::Type > | |
typedef T | Type |
Produces the pointed-to type if a pointer is provided, else returns the input type.
Note that this does not dereference pointer-to-member pointers.
struct S { bool m; void f(); }; mozilla::RemovePointer<int>::Type is int; mozilla::RemovePointer<int*>::Type is int; mozilla::RemovePointer<int* const>::Type is int; mozilla::RemovePointer<int* volatile>::Type is int; mozilla::RemovePointer<const long*>::Type is const long; mozilla::RemovePointer<void* const>::Type is void; mozilla::RemovePointer<void (S::*)()>::Type is void (S::*)(); mozilla::RemovePointer<void (*)()>::Type is void(); mozilla::RemovePointer<bool S::*>::Type is bool S::*.
Definition at line 1062 of file TypeTraits.h.