From 12e135c266c58879fada3e49360d54e931420192 Mon Sep 17 00:00:00 2001 From: Tobias Zindl Date: Fri, 13 Oct 2023 18:41:54 +0200 Subject: [PATCH] :sparkles: add nontype --- include/zll/utils/nontype.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/zll/utils/nontype.hpp diff --git a/include/zll/utils/nontype.hpp b/include/zll/utils/nontype.hpp new file mode 100644 index 0000000..abe9414 --- /dev/null +++ b/include/zll/utils/nontype.hpp @@ -0,0 +1,18 @@ +#ifndef ZLL_UTILS_NONTYPE_HPP +#define ZLL_UTILS_NONTYPE_HPP + +#include "zll/meta/integral_constant.hpp" + +namespace zll { + +template +struct nontype_t {}; + +template +struct is_nontype : zll::meta::false_type {}; + +template +struct is_nontype > : zll::meta::true_type {}; +} // namespace zll + +#endif // ZLL_UTILS_NONTYPE_HPP