BloombergLP::bslalg::DequePrimitives::moveInsertAndMoveToFront

Same as the related overload above for moveInsertAndMoveToFront.

Synopsis

Declared in <bslalg_dequeprimitives.h>

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

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