absl::c_move

c_move overloads

Synopses

Declared in <absl/algorithm/container.h>

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

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

Moves elements from src to dest. absl::c_move(src, dest) is equivalent to std::move(std::begin(src), std::end(src), std::begin(dest)).

template<
    typename C,
    typename OutputRange>
constexpr
/* implementation-defined */
c_move(
    C&& src,
    OutputRange&& dest);
» more...

Return Value

  • An iterator to the end of the moved range in the destination.
  • This overload returns no value; the results are written into dest.

Parameters

NameDescription
srcThe container whose elements to move.
destThe output iterator receiving the moved elements.