UE::Deque::Private::WrapAround

This implementation assumes that the Index value is never going to exceed twice the Range value.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Deque.h

Include

#include "Containers/Deque.h"

Syntax

namespace UE
{
    namespace Deque
    {
        namespace Private
        {
            template<typename InSizeType>
            InSizeType UE::Deque::Private::WrapAround
            (
                InSizeType Index,
                InSizeType Range
            )
        }
    }
}

Remarks

This implementation assumes that the Index value is never going to exceed twice the Range value. This way we can avoid the modulo operator or a power of 2 range value requirement and have an efficient wrap around function.