UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TDeque< InElementType, InAllocatorType > Class Template Reference

#include <Deque.h>

Public Types

using AllocatorType = InAllocatorType
 
using SizeType = typename InAllocatorType::SizeType
 
using ElementType = InElementType
 
using ElementAllocatorType = std::conditional_t< AllocatorType::NeedsElementType, typename AllocatorType::template ForElementType< ElementType >, typename AllocatorType::ForAnyElementType >
 
using ConstIteratorType = UE::Deque::Private::TIterator< const ElementType, SizeType >
 
using IteratorType = UE::Deque::Private::TIterator< ElementType, SizeType >
 

Public Member Functions

 TDeque ()
 
 TDeque (TDeque &&Other)
 
 TDeque (const TDeque &Other)
 
 TDeque (std::initializer_list< ElementType > InList)
 
 ~TDeque ()
 
TDequeoperator= (TDeque &&Other)
 
TDequeoperator= (const TDeque &Other)
 
TDequeoperator= (std::initializer_list< ElementType > InList)
 
const ElementTypeoperator[] (SizeType Index) const
 
ElementTypeoperator[] (SizeType Index)
 
const ElementTypeLast () const
 
ElementTypeLast ()
 
const ElementTypeFirst () const
 
ElementTypeFirst ()
 
UE_FORCEINLINE_HINT bool IsEmpty () const
 
UE_FORCEINLINE_HINT SizeType Max () const
 
UE_FORCEINLINE_HINT SizeType Num () const
 
UE_FORCEINLINE_HINT SIZE_T GetAllocatedSize () const
 
template<typename... ArgsType>
ElementTypeEmplaceLast (ArgsType &&... Args)
 
template<typename... ArgsType>
ElementTypeEmplaceFirst (ArgsType &&... Args)
 
UE_FORCEINLINE_HINT void PushLast (const ElementType &Element)
 
UE_FORCEINLINE_HINT void PushLast (ElementType &&Element)
 
UE_FORCEINLINE_HINT void PushFirst (const ElementType &Element)
 
UE_FORCEINLINE_HINT void PushFirst (ElementType &&Element)
 
void PopLast ()
 
void PopFirst ()
 
bool TryPopLast (ElementType &OutValue)
 
bool TryPopFirst (ElementType &OutValue)
 
void Reset ()
 
void Empty ()
 
void Reserve (SizeType InCount)
 
UE_FORCEINLINE_HINT ConstIteratorType begin () const
 
UE_FORCEINLINE_HINT IteratorType begin ()
 
UE_FORCEINLINE_HINT ConstIteratorType end () const
 
UE_FORCEINLINE_HINT IteratorType end ()
 
bool operator== (const TDeque &Right) const
 
bool operator!= (const TDeque &Right) const
 

Friends

template<typename AnyElementType , typename AnyAllocatorType >
class TDeque
 

Detailed Description

template<typename InElementType, typename InAllocatorType>
class TDeque< InElementType, InAllocatorType >

Sequential double-ended queue (deque) container class.

A dynamically sized sequential queue of arbitrary size.

Member Typedef Documentation

◆ AllocatorType

◆ ConstIteratorType

◆ ElementAllocatorType

using TDeque< InElementType, InAllocatorType >::ElementAllocatorType = std::conditional_t< AllocatorType::NeedsElementType, typename AllocatorType::template ForElementType<ElementType>, typename AllocatorType::ForAnyElementType>

◆ ElementType

◆ IteratorType

◆ SizeType

using TDeque< InElementType, InAllocatorType >::SizeType = typename InAllocatorType::SizeType

Constructor & Destructor Documentation

◆ TDeque() [1/4]

◆ TDeque() [2/4]

◆ TDeque() [3/4]

◆ TDeque() [4/4]

TDeque< InElementType, InAllocatorType >::TDeque ( std::initializer_list< ElementType InList)
inline

◆ ~TDeque()

Member Function Documentation

◆ begin() [1/2]

◆ begin() [2/2]

◆ EmplaceFirst()

template<typename... ArgsType>
ElementType & TDeque< InElementType, InAllocatorType >::EmplaceFirst ( ArgsType &&...  Args)
inline

◆ EmplaceLast()

template<typename... ArgsType>
ElementType & TDeque< InElementType, InAllocatorType >::EmplaceLast ( ArgsType &&...  Args)
inline

◆ Empty()

◆ end() [1/2]

◆ end() [2/2]

◆ First() [1/2]

◆ First() [2/2]

◆ GetAllocatedSize()

Helper function to return the amount of memory allocated by this container. Only returns the size of allocations made directly by the container, not the elements themselves.

Returns
Number of bytes allocated by this container.

◆ IsEmpty()

◆ Last() [1/2]

◆ Last() [2/2]

◆ Max()

◆ Num()

◆ operator!=()

◆ operator=() [1/3]

◆ operator=() [2/3]

TDeque & TDeque< InElementType, InAllocatorType >::operator= ( std::initializer_list< ElementType InList)
inline

◆ operator=() [3/3]

◆ operator==()

◆ operator[]() [1/2]

◆ operator[]() [2/2]

const ElementType & TDeque< InElementType, InAllocatorType >::operator[] ( SizeType  Index) const
inline

◆ PopFirst()

◆ PopLast()

◆ PushFirst() [1/2]

◆ PushFirst() [2/2]

◆ PushLast() [1/2]

◆ PushLast() [2/2]

◆ Reserve()

◆ Reset()

◆ TryPopFirst()

bool TDeque< InElementType, InAllocatorType >::TryPopFirst ( ElementType OutValue)
inline

◆ TryPopLast()

bool TDeque< InElementType, InAllocatorType >::TryPopLast ( ElementType OutValue)
inline

Friends And Related Symbol Documentation

◆ TDeque


The documentation for this class was generated from the following file: