LibreOffice Module onlineupdate (master) 1
List of all members
mozilla::RemovePointer< T > Struct Template Reference

Produces the pointed-to type if a pointer is provided, else returns the input type. More...

#include <TypeTraits.h>

Inheritance diagram for mozilla::RemovePointer< T >:
[legend]
Collaboration diagram for mozilla::RemovePointer< T >:
[legend]

Additional Inherited Members

- Public Types inherited from mozilla::detail::RemovePointerHelper< T, RemoveCV< T >::Type >
typedef T Type
 

Detailed Description

template<typename T>
struct mozilla::RemovePointer< T >

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.


The documentation for this struct was generated from the following file: