Return a range that conditionally reverses C.
Declared in <llvm/ADT/STLExtras.h>
template<typename ContainerTy>
[[nodiscard]]
auto
reverse_conditionally(
ContainerTy&& C,
bool ShouldReverse);
The collection is iterated in reverse if ShouldReverse is true (otherwise, it is iterated forwards).
| Name | Description |
|---|---|
| C | Container or range to view. |
| ShouldReverse | Whether to iterate in reverse order. |