General Utility Library for C++17 25.4.1
Classes | Typedefs
gul17/traits.h

Detailed Description

Type traits and helpers for metaprogramming.

Classes

struct  gul17::IsContainerLike< T, typename >
 Helper type trait object to determine if a type is a container. More...
 

Typedefs

template<typename T >
using gul17::remove_cvref = typename std::remove_cv< std::remove_reference_t< T > >
 A template metafunction that removes const, volatile, and reference qualifiers from a type.
 
template<typename T >
using gul17::remove_cvref_t = typename remove_cvref< T >::type
 A template metafunction that removes const, volatile, and reference qualifiers from a type.
 

Typedef Documentation

◆ remove_cvref

template<typename T >
using gul17::remove_cvref = typedef typename std::remove_cv<std::remove_reference_t<T> >

A template metafunction that removes const, volatile, and reference qualifiers from a type.

The stripped type is available in the member typedef type.

This is a substitute for C++20's std::remove_cvref.

Since
GUL version 2.9

◆ remove_cvref_t

A template metafunction that removes const, volatile, and reference qualifiers from a type.

This is a substitute for C++20's std::remove_cvref_t.

Since
GUL version 2.9