From 8e7af3a3202110e6bdd738b572a7e051d4e70329 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Sun, 18 Nov 2018 19:00:38 +0100 Subject: [PATCH] Add traits::unrefcv_t for later usage --- include/continuable/detail/utility/traits.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/continuable/detail/utility/traits.hpp b/include/continuable/detail/utility/traits.hpp index a9e2736..7c88688 100644 --- a/include/continuable/detail/utility/traits.hpp +++ b/include/continuable/detail/utility/traits.hpp @@ -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 +using unrefcv_t = std::remove_cv_t>; + namespace detail { template struct index_of_impl;