BloombergLP::bslalg::DequePrimitives::moveInsertAndMoveToFront

moveInsertAndMoveToFront overloads

Synopses

Declared in <bslalg_dequeprimitives.h>

Move-insert a value, shifting existing elements toward the front.

template<class ALLOCATOR>
static
void
moveInsertAndMoveToFront(
    Iterator* toBegin,
    Iterator fromBegin,
    Iterator position,
    bslmf::MovableRef<VALUE_TYPE> value,
    ALLOCATOR allocator);
» more...

Move-insert a value toward the front (bitwise-copyable).

template<class ALLOCATOR>
static
void
moveInsertAndMoveToFront(
    Iterator* toBegin,
    Iterator fromBegin,
    Iterator position,
    bslmf::MovableRef<VALUE_TYPE> value,
    ALLOCATOR allocator,
    bsl::integral_constant<int, BSLALG_DEQUEPRIMITIVES_BITWISE_COPYABLE_TRAITS> traits);
» more...

Same as the related overload above for moveInsertAndMoveToFront.

template<class ALLOCATOR>
static
void
moveInsertAndMoveToFront(
    Iterator* toBegin,
    Iterator fromBegin,
    Iterator position,
    bslmf::MovableRef<VALUE_TYPE> value,
    ALLOCATOR allocator,
    bsl::integral_constant<int, BSLALG_DEQUEPRIMITIVES_BITWISE_MOVEABLE_TRAITS> traits);
» more...

Same as the preceding overload.

template<class ALLOCATOR>
static
void
moveInsertAndMoveToFront(
    Iterator* toBegin,
    Iterator fromBegin,
    Iterator position,
    bslmf::MovableRef<VALUE_TYPE> value,
    ALLOCATOR allocator,
    bsl::integral_constant<int, BSLALG_DEQUEPRIMITIVES_NIL_TRAITS> traits);
» more...

Parameters

NameDescription
toBeginloads the beginning iterator after insertion
fromBegincurrent beginning of the deque
positioninsertion position within the deque
valuemove-insertable value to place at position
allocatorallocator passed to the move constructor
traitsunused trait tag for overload resolution