TCircularHistoryBuffer::operator[]

NOTE: Will clamp to the oldest value available if the buffer isn't full and the index is larger than the number of values buffered.

Windows
MacOS
Linux

References

Module

HeadMountedDisplay

Header

/Engine/Source/Runtime/HeadMountedDisplay/Public/MotionDelayBuffer.h

Include

#include "MotionDelayBuffer.h"

Source

/Engine/Source/Runtime/HeadMountedDisplay/Public/MotionDelayBuffer.inl

Syntax

ElementType & operator[]
(
    uint32 Index
)

Remarks

NOTE: Will clamp to the oldest value available if the buffer isn't full and the index is larger than the number of values buffered.

Parameters

Parameter

Description

Index

Stack-esque indexing: 0 => the most recent value added, 1+n => Older entries, 1+n back from the newest.

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