delpi  0.0.1
DElta-complete LP solver
Loading...
Searching...
No Matches
delpi::IsAnyOf Concept Reference

Check if the type T is any of the types U. More...

#include <concepts.h>

Concept definition

template<typename T, typename... U>
concept IsAnyOf = (std::same_as<T, U> || ...)
Check if the type T is any of the types U.
Definition concepts.h:118

Detailed Description

Check if the type T is any of the types U.

template <IsAnyOf<int, float, bool> T>
void foo(T t); // T can be either int, float or bool
Template Parameters
Ttype to check
Uany number of types to check against

Definition at line 118 of file concepts.h.