Function: IterRange

public:
template <typename T>
TIterRange<T> IterRange(
    T From,
    T To
);

Iterator that yields range of values.

Range:

  • inclusive lower bound.
  • exclusive upper bound. For range from 0 to 5 it means yielding values: 0, 1, 2, 3, 4.

Note

This iterator is value type agnostic, all it requires from type is for it to implemen operator++ and operator-;

Example

// [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
const TArray<int> Result = IterRange(0, 10).CollectArray();

Arguments

  • From

    T From
    

    Lower inclusive bound.

  • To

    T To
    

    Upper exclusive bound.


Documentation built with Unreal-Doc v1.0.8 tool by PsichiX