General Purpose library for Freestanding C++ and POSIX systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
240 B

  1. #pragma once
  2. #include <type_traits>
  3. namespace gp{
  4. template< class T >
  5. struct remove_cvref {
  6. using type = std::remove_cv_t<std::remove_reference_t<T>>;
  7. };
  8. template< class T >
  9. using remove_cvref_t = typename remove_cvref<T>::type;
  10. }