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

Check if the type T is an iterable type. More...

#include <concepts.h>

Concept definition

template<class T>
concept Iterable = requires(T t) {
{ t.begin() } -> std::convertible_to<typename T::iterator>;
{ t.end() } -> std::convertible_to<typename T::iterator>;
}
Check if the type T is an iterable type.
Definition concepts.h:57

Detailed Description

Check if the type T is an iterable type.

template <Iterable T>
void foo(T t); // T can be any iterable type
Template Parameters
Ttype to check

Definition at line 57 of file concepts.h.