absl::move

move overloads

Synopses

Declared in <absl/utility/utility.h>

Cast a value to an rvalue reference to enable moving from it.

template<class T>
[[deprecated("Use std::move instead."), nodiscard]]
constexpr
std::remove_reference_t<T>&&
move(T&& arg) noexcept;
» more...

Move a range of elements into an output iterator.

template<
    class It,
    class OutIt>
[[deprecated("Use std::move instead.")]]
constexpr
OutIt
move(
    It&& begin,
    It&& end,
    OutIt&& output);
» more...

WARNING

Deprecated: Use std::move instead.. Use of this entity is allowed but discouraged.

Return Value

  • An rvalue reference to arg.
  • An iterator past the last moved element.

Parameters

NameDescription
argThe value to cast.
beginThe start of the input range.
endThe end of the input range.
outputThe start of the destination range.