class concat_iterator
Declaration
template <typename ValueT, typename... IterTs>
class concat_iterator { /* full declaration omitted */ };
Description
Iterator wrapper that concatenates sequences together. This can concatenate different iterators, even with different types, into a single iterator provided the value types of all the concatenated iterators expose `reference` and `pointer` types that can be converted to `ValueT & ` and `ValueT *` respectively. It doesn't support more interesting/customized pointer or reference types. Currently this only supports forward or higher iterator categories as inputs and always exposes a forward iterator interface.
Declared at: llvm/include/llvm/ADT/STLExtras.h:816
Templates
- ValueT
- IterTs
Method Overview
- public template <typename... RangeTs> concat_iterator<ValueT, IterTs...>(RangeTs &&... Ranges)
Methods
ΒΆtemplate <typename... RangeTs>
concat_iterator<ValueT, IterTs...>(
RangeTs&&... Ranges)
template <typename... RangeTs>
concat_iterator<ValueT, IterTs...>(
RangeTs&&... Ranges)
Description
Constructs an iterator from a squence of ranges. We need the full range to know how to switch between each of the iterators.
Declared at: llvm/include/llvm/ADT/STLExtras.h:895
Templates
- RangeTs
Parameters
- RangeTs&&... Ranges