Allowed values constraint ( enum ).
More...
#include <constraints.hpp>
|
template<typename V>
requires std::equality_comparable_with<V, A> |
| bool | check (const V &value, std::string &message) const |
template<typename A>
struct anch::val::Allowed< A >
Allowed values constraint ( enum ).
- Template Parameters
-
- Author
- Vincent Lachenal
- Since
- 0.2
◆ check()
template<typename A>
template<typename V>
requires std::equality_comparable_with<V, A>
Check value
- Template Parameters
-
- Parameters
-
| value | the value |
| message | the error message (set when value is invalid) |
- Returns
true when value is valid
◆ values
The documentation for this struct was generated from the following file: