#include <rll/type_traits.h>
template <typename T>
plain_type struct
Remove all cv qualifiers, references and pointers from a type.
Template parameters | |
---|---|
T | The type to remove qualifiers from. |
For example:
std::
becomesstring& std::
string const int*
becomesint
int**
becomesint
const volatile std::
becomesstring** std::
string
Public types
-
using const_type = std::
add_const_t<type> - The type without qualifiers, references and pointers with a const qualifier.
-
using type = remove_
cvref_ t<std:: remove_pointer_t<T>> - The type without qualifiers, references and pointers.