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);

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);

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);

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);

Parameters

Name

Description

toEnd

loads the end iterator after insertion

fromEnd

current end of the deque

position

insertion position within the deque

value

move‐insertable value to place at position

allocator

allocator passed to the move constructor

traits

unused trait tag for overload resolution

Created with MrDocs