range overloads
Declared in <folly/Range.h>
Create a range referencing an initializer list.
template<class T>
constexpr
Range<T const*>
range(std::initializer_list<T> ilist);
» more...
Create a range referencing the contents of a contiguous-storage container.
template<class Collection>
constexpr
Range<decltype(v.data())>
range(Collection& v);
» more...
Create a range referencing the contents of a constant container.
template<class Collection>
constexpr
Range<decltype(v.data())>
range(Collection const& v);
» more...
Create a range referencing a std::array.
template<
class T,
size_t n>
constexpr
Range<T*>
range(std::array<T, n>& array);
» more...
Create a range referencing a constant std::array.
template<
class T,
size_t n>
constexpr
Range<T const*>
range(std::array<T, n> const& array);
» more...
Create a range referencing a C array.
template<
class T,
size_t n>
constexpr
Range<T*>
range(T(& array)[]);
» more...
Create a range referencing a constant C array.
template<
class T,
size_t n>
constexpr
Range<T const*>
range(T const(& array)[]);
» more...
Create a range from two iterators, with type deduction.
template<class Iter>
constexpr
Range<Iter>
range(
Iter first,
Iter last);
» more...
The resulting range.
| Name | Description |
|---|---|
| ilist | The initializer list to reference. |
| v | The container to reference. |
| array | The array to reference. |
| first | The iterator to the first element. |
| last | The iterator past the last element. |