docs/concepttf_1_1IndexRanges1DLike.html
| | Taskflow: A General-purpose Task-parallel Programming System |
Loading...
Searching...
No Matches
tf::IndexRanges1DLike Concept Reference
concept to check if a type is a tf::IndexRanges<T, 1> (i.e., tf::IndexRange<T>) More...
#include <taskflow/utility/iterator.hpp>
template<typename R>
concept tf::IndexRanges1DLike = IndexRangesLike<R> &&
(std::decay_t<std::unwrap_ref_decay_t<R>>::rank == 1)
concept to check if a type is a tf::IndexRanges<T, 1> (i.e., tf::IndexRange<T>)
Definition iterator.hpp:1017
concept to check if a type is a tf::IndexRanges, regardless of dimensionality
Definition iterator.hpp:1004
concept to check if a type is a tf::IndexRanges<T, 1> (i.e., tf::IndexRange<T>)
Template Parameters
| R | the range type to evaluate |
static_assert( tf::IndexRanges1DLike<tf::IndexRange<int>>); // true
static_assert( tf::IndexRanges1DLike<tf::IndexRanges<int, 1>>); // true
static_assert(! tf::IndexRanges1DLike<tf::IndexRanges<int, 2>>); // false