BloombergLP::bslalg::DequePrimitives::moveInsertAndMoveToBack

moveInsertAndMoveToBack overloads

Synopses

Declared in <bslalg_dequeprimitives.h>

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

template<class ALLOCATOR>
static
void
moveInsertAndMoveToBack(
    Iterator* toEnd,
    Iterator fromEnd,
    Iterator position,
    bslmf::MovableRef<VALUE_TYPE> value,
    ALLOCATOR allocator);
» more...

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

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

Same as the preceding overload.

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

Same as the related overload above for moveInsertAndMoveToBack.

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

Parameters

NameDescription
toEndloads the end iterator after insertion
fromEndcurrent end 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