Back to Taskflow

Taskflow: A General

docs/concepttf_1_1IndexRanges1DLike.html

4.1.01.9 KB
Original Source

| | 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>

Concept definition

template<typename R>

concept tf::IndexRanges1DLike = IndexRangesLike<R> &&

(std::decay_t<std::unwrap_ref_decay_t<R>>::rank == 1)

tf::IndexRanges1DLike

concept to check if a type is a tf::IndexRanges<T, 1> (i.e., tf::IndexRange<T>)

Definition iterator.hpp:1017

tf::IndexRangesLike

concept to check if a type is a tf::IndexRanges, regardless of dimensionality

Definition iterator.hpp:1004

Detailed Description

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