lucid  0.0.1
Lifting-based Uncertain Control Invariant Dynamics
Loading...
Searching...
No Matches
lucid::SizedIterable Concept Reference

Check if the type T is an iterable type with a size() method. More...

#include <concept.h>

Concept definition

template<class T>
concept lucid::SizedIterable = requires(T t) {
{ t.begin() } -> std::convertible_to<typename T::iterator>;
{ t.end() } -> std::convertible_to<typename T::iterator>;
{ t.size() } -> std::convertible_to<std::size_t>;
}
Check if the type T is an iterable type with a size() method.
Definition concept.h:88

Detailed Description

Check if the type T is an iterable type with a size() method.

template <SizedIterable T>
void foo(T t); // T can be any iterable type with a size() method
Template Parameters
Ttype to check