Algo::Rotate

Rotates a given amount of elements from the front of the range to the end of the range.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Algo/Rotate.h

Include

#include "Algo/Rotate.h"

Syntax

namespace Algo
{
    template<typename RangeType>
    int32 Algo::Rotate
    (
        RangeType & Range,
        int32 Count
    )
}

Remarks

Rotates a given amount of elements from the front of the range to the end of the range.

Returns

The new index of the element that was previously at the start of the range.

Parameters

Parameter

Description

Range

The range to rotate.

Num

The number of elements to rotate from the front of the range.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss