Skip to content

Commit

Permalink
✨ add nontype
Browse files Browse the repository at this point in the history
  • Loading branch information
zie87 committed Oct 13, 2023
1 parent 1dc3bc6 commit 12e135c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions include/zll/utils/nontype.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#ifndef ZLL_UTILS_NONTYPE_HPP
#define ZLL_UTILS_NONTYPE_HPP

#include "zll/meta/integral_constant.hpp"

namespace zll {

template <typename T, T VALUE>
struct nontype_t {};

template <typename T>
struct is_nontype : zll::meta::false_type {};

template <typename T, T VALUE>
struct is_nontype<nontype_t<T, VALUE> > : zll::meta::true_type {};
} // namespace zll

#endif // ZLL_UTILS_NONTYPE_HPP

0 comments on commit 12e135c

Please sign in to comment.