|
MeVisLab Toolbox Reference
|
In combination with the in function, it returns true if a passed value is in the set of possible values.
More...
#include <mlContainerHelpers.h>
Public Member Functions | |
| template<typename U > | |
| constexpr bool | in (U a) |
| template<class Arg , class... Args> | |
| constexpr bool | in (Arg a, Args... args) |
Public Attributes | |
| T | d_ |
In combination with the in function, it returns true if a passed value is in the set of possible values.
For example: if (is(value).in(option1, option2, option3)) { ... } Intended to be used for enumerated values.
Definition at line 26 of file mlContainerHelpers.h.
|
inlineconstexpr |
Definition at line 35 of file mlContainerHelpers.h.
Definition at line 30 of file mlContainerHelpers.h.