Add c++20 std::remove_cvref, for convenience

@mglisse Next time you need it... it is now here.
This commit is contained in:
Laurent Rineau 2022-10-27 21:42:03 +02:00
parent f5480e6006
commit 51a1179d3b
1 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,14 @@ struct is_same_or_derived :
>::type
{};
template< class T >
struct remove_cvref {
typedef std::remove_cv_t<std::remove_reference_t<T>> type;
};
template< class T >
using remove_cvref_t = typename remove_cvref<T>::type;
}
#endif // CGAL_TYPE_TRAITS_H