Add traits::unrefcv_t for later usage

This commit is contained in:
Denis Blank 2018-11-18 19:00:38 +01:00
parent 4ae5601563
commit 8e7af3a320

View File

@ -40,6 +40,12 @@
namespace cti {
namespace detail {
namespace traits {
/// Removes all references and qualifiers from the given type T,
/// since std::decay has too much overhead through checking for
/// function pointers and arrays also.
template <typename T>
using unrefcv_t = std::remove_cv_t<std::remove_reference_t<T>>;
namespace detail {
template <typename T, typename... Args>
struct index_of_impl;