Isle
Loading...
Searching...
No Matches
Deque< _TYPE > Class Template Reference

[AI] Custom wrapper around std::deque providing consistent allocator usage and swap semantics. More...

#include <mxstl.h>

Inheritance diagram for Deque< _TYPE >:
Collaboration diagram for Deque< _TYPE >:

Public Types

typedef Deque< _TYPE > _Myt
 [AI] Self type for use in member functions and templates. [AI] More...
 
typedef allocator< _TYPE > _A
 [AI] Allocator type for contained elements. [AI] More...
 

Public Member Functions

 Deque (const _A &_Al=_A())
 [AI] Constructs a Deque with an optional allocator. More...
 
 Deque (size_type _N, const _TYPE &_V=_TYPE())
 [AI] Constructs a Deque with a specified number of elements and initial value. More...
 
void swap (_Myt &_X)
 [AI] Swaps the contents of this Deque with another. More...
 

Friends

void swap (_Myt &_X, _Myt &_Y)
 [AI] Friend swap function for ADL-enabled efficient swapping. More...
 

Detailed Description

template<class _TYPE>
class Deque< _TYPE >

[AI] Custom wrapper around std::deque providing consistent allocator usage and swap semantics.

[AI] Acts as a drop-in replacement for std::deque, using a specified allocator and providing an explicit swap function and friend overload for use throughout the LEGO Island codebase.

Definition at line 36 of file mxstl.h.

Member Typedef Documentation

◆ _A

template<class _TYPE >
typedef allocator<_TYPE> Deque< _TYPE >::_A

[AI] Allocator type for contained elements. [AI]

Definition at line 40 of file mxstl.h.

◆ _Myt

template<class _TYPE >
typedef Deque<_TYPE> Deque< _TYPE >::_Myt

[AI] Self type for use in member functions and templates. [AI]

Definition at line 39 of file mxstl.h.

Constructor & Destructor Documentation

◆ Deque() [1/2]

template<class _TYPE >
Deque< _TYPE >::Deque ( const _A _Al = _A())
inlineexplicit

[AI] Constructs a Deque with an optional allocator.

Parameters
_AlAllocator to use for storage. [AI]

Definition at line 46 of file mxstl.h.

◆ Deque() [2/2]

template<class _TYPE >
Deque< _TYPE >::Deque ( size_type  _N,
const _TYPE &  _V = _TYPE() 
)
inlineexplicit

[AI] Constructs a Deque with a specified number of elements and initial value.

Parameters
_NNumber of elements. [AI]
_VValue to fill with. [AI]

Definition at line 54 of file mxstl.h.

Member Function Documentation

◆ swap()

template<class _TYPE >
void Deque< _TYPE >::swap ( _Myt _X)
inline

[AI] Swaps the contents of this Deque with another.

Parameters
_XReference to the other Deque. [AI]

Definition at line 61 of file mxstl.h.

Friends And Related Function Documentation

◆ swap

template<class _TYPE >
void swap ( _Myt _X,
_Myt _Y 
)
friend

[AI] Friend swap function for ADL-enabled efficient swapping.

Parameters
_XFirst Deque. [AI]
_YSecond Deque. [AI]

Definition at line 71 of file mxstl.h.


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