plll  1.0
plll::helper::remove_decorations< A > Struct Template Reference

Strips decorations const, &, volatile and && from types. More...

#include <helper.hpp>

Public Types

typedef
implementation::remove_decorations_impl
< A >::result 
Result
 The stripped type.
 

Detailed Description

template<typename A>
struct plll::helper::remove_decorations< A >

Strips decorations const, &, volatile and && from types.

Strips the decorations const, &, volatile and && (in case of C++11) from types. More precisely, the four types

  • plll::remove_decorations<T>::Result
  • plll::remove_decorations<T &>::Result
  • plll::remove_decorations<const T>::Result
  • plll::remove_decorations<const T &>::Result
  • plll::remove_decorations<volatile T>::Result
  • plll::remove_decorations<volatile T &>::Result
  • plll::remove_decorations<volatile const T>::Result
  • plll::remove_decorations<volatile const T &>::Result

will be all equal to T in case T is a class, native type or pointer. (In C++11, one could add eight more examples with &&.)

Template Parameters
AThe type to strip decorations from.

Note that in C++11, std::remove_reference<> and std::remove_cv<> combined would provide the same functionality.

Definition at line 286 of file helper.hpp.


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