forked from Alepha/Alepha
Add an Enumeration
concept to detect enum
This lets one explicitly require an enum as a template parameter.
This commit is contained in:
@ -77,6 +77,9 @@ namespace Alepha::Hydrogen ::detail:: Concepts_m
|
|||||||
template< typename T >
|
template< typename T >
|
||||||
concept Streamable= OStreamable< T > and IStreamable< T >;
|
concept Streamable= OStreamable< T > and IStreamable< T >;
|
||||||
|
|
||||||
|
template< typename T >
|
||||||
|
concept Enumeration= std::is_enum_v< T >;
|
||||||
|
|
||||||
|
|
||||||
// Various operator possible concepts:
|
// Various operator possible concepts:
|
||||||
template< typename T >
|
template< typename T >
|
||||||
|
Reference in New Issue
Block a user