From f1f1a8017d4976633d9f7a98851873c95178ceca Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 30 May 2024 14:25:53 -0400 Subject: [PATCH] Add an `Enumeration` concept to detect `enum` --- Concepts.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Concepts.h b/Concepts.h index 6c2c19c..53a6b7a 100644 --- a/Concepts.h +++ b/Concepts.h @@ -77,6 +77,9 @@ namespace Alepha::Hydrogen ::detail:: Concepts_m template< typename T > concept Streamable= OStreamable< T > and IStreamable< T >; + template< typename T > + concept Enumeration= std::is_enum_v< T >; + // Various operator possible concepts: template< typename T >