mirror of https://github.com/CGAL/cgal
Add c++20 std::remove_cvref, for convenience
@mglisse Next time you need it... it is now here.
This commit is contained in:
parent
f5480e6006
commit
51a1179d3b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue