absl::move

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

Synopsis

Declared in <absl/utility/utility.h>

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

WARNING

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

Return Value

An rvalue reference to arg.

NOTE

The return value should not be discarded.

Parameters

NameDescription
argThe value to cast.