carl  24.04
Computer ARithmetic Library
enum_util.h File Reference
#include <limits>
#include <type_traits>
Include dependency graph for enum_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 carl
 carl is the main namespace for the library.
 

Functions

template<typename Enum >
constexpr Enum carl::invalid_enum_value ()
 Returns an enum value that is (most probably) not a valid enum value. More...
 
template<typename Enum >
constexpr auto carl::underlying_enum_value (Enum e)
 Casts an enum value to a value of the underlying number type. More...