Container‐based version of the <algorithm> std::move() function to move a container's elements into an iterator.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename OutputIterator>
constexpr
/* implementation-defined */
c_move(
    C&& src,
    OutputIterator&& dest);

Return Value

An iterator to the end of the moved range in the destination.

Parameters

Name

Description

src

The container whose elements to move.

dest

The output iterator receiving the moved elements.

Created with MrDocs