summaryrefslogtreecommitdiff
path: root/asl/meta.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-11-22 18:15:40 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:35:58 +0100
commitdefa7e1b9e16c6276e17a39b61d019c1a116472b (patch)
treecd7534d45a567987030ad4ee602fd2cf96c4f79c /asl/meta.hpp
parent58bb86fd2f0ecd740fc5bc8078de44221c12c70a (diff)
Use niche in option
Diffstat (limited to 'asl/meta.hpp')
-rw-r--r--asl/meta.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/asl/meta.hpp b/asl/meta.hpp
index 72b36fd..ab25a88 100644
--- a/asl/meta.hpp
+++ b/asl/meta.hpp
@@ -169,4 +169,7 @@ concept has_niche = constructible_from<T, niche> &&
{ value == n } -> same_as<bool>;
};
+template<typename T>
+concept is_niche = same_as<un_cvref_t<T>, niche>;
+
} // namespace asl