refactor: add utility meta-func for internal use

This commit is contained in:
ToruNiina
2019-09-28 10:58:02 +09:00
parent ecfc9d0c5a
commit 1409114c96

View File

@@ -240,6 +240,19 @@ disjunction<
>
>{};
// ---------------------------------------------------------------------------
// C++20 remove_cvref_t
template<typename T>
struct remove_cvref
{
using type = typename std::remove_cv<
typename std::remove_reference<T>::type>::type;
};
template<typename T>
using remove_cvref_t = typename remove_cvref<T>::type;
}// detail
}//toml
#endif // TOML_TRAITS