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

[AI] Custom vector supporting allocator and custom swap semantics. More...

#include <mxstl.h>

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

Public Types

typedef Vector< _TYPE > _Myt
 [AI] Self type [AI] More...
 
typedef allocator< _TYPE > _A
 [AI] Allocator type [AI] More...
 

Public Member Functions

 Vector (const _A &_Al=_A())
 [AI] Constructs an empty Vector with an optional allocator. More...
 
void swap (_Myt &_X)
 [AI] Swaps the content with another Vector. More...
 

Friends

void swap (_Myt &_X, _Myt &_Y)
 [AI] Friend swap for Vector. More...
 

Detailed Description

template<class _TYPE>
class Vector< _TYPE >

[AI] Custom vector supporting allocator and custom swap semantics.

[AI] Used for contiguous storage of objects, as a standard replacement of std::vector, with explicit allocator management to support the LEGO Island memory model.

Definition at line 287 of file mxstl.h.

Member Typedef Documentation

◆ _A

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

[AI] Allocator type [AI]

Definition at line 291 of file mxstl.h.

◆ _Myt

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

[AI] Self type [AI]

Definition at line 290 of file mxstl.h.

Constructor & Destructor Documentation

◆ Vector()

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

[AI] Constructs an empty Vector with an optional allocator.

Parameters
_AlAllocator to use [AI]

Definition at line 297 of file mxstl.h.

Member Function Documentation

◆ swap()

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

[AI] Swaps the content with another Vector.

Parameters
_XReference to another Vector [AI]

Definition at line 304 of file mxstl.h.

Friends And Related Function Documentation

◆ swap

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

[AI] Friend swap for Vector.

Parameters
_XFirst Vector [AI]
_YSecond Vector [AI]

Definition at line 314 of file mxstl.h.


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