UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Deque::Private Namespace Reference

Classes

class  TIteratorBase
 

Typedefs

template<typename InElementType , typename InSizeType >
using TIterator = TIteratorAdapter< TIteratorBase< InElementType, InSizeType > >
 

Functions

template<typename InSizeType >
UE_FORCEINLINE_HINT InSizeType WrapAround (InSizeType Index, InSizeType Range)
 

Typedef Documentation

◆ TIterator

Function Documentation

◆ WrapAround()

template<typename InSizeType >
UE_FORCEINLINE_HINT InSizeType UE::Deque::Private::WrapAround ( InSizeType  Index,
InSizeType  Range 
)

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.