From 009113e566d3b18c2dd24bd31f07a9df0b687817 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sat, 9 Nov 2024 21:35:59 +0100 Subject: [PATCH] Added delay_type_t and type_at_t traits. --- source/mijin/util/traits.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/mijin/util/traits.hpp b/source/mijin/util/traits.hpp index e96452f..aaa3141 100644 --- a/source/mijin/util/traits.hpp +++ b/source/mijin/util/traits.hpp @@ -121,6 +121,24 @@ using copy_volatile_t = std::conditional_t, std::add_v template using copy_cv_t = copy_const_t>; +template +using delay_type_t = TActual; + + +template +struct TypeAtHelper +{ + using type_t = std::conditional_t>; +}; + +template +struct TypeAtHelper +{ + using type_t = std::enable_if_t; +}; +template +using type_at_t = TypeAtHelper::type_t; + // // public functions //