Share via


move

Returns the passed in argument as an rvalue reference.

template<class Type>
    typename remove_reference<T>::type&&
        move(Type&& _Arg);

Parameters

Parameter

Description

_Arg

The parameter to move.

Return Value

This template function returns _Arg as an rvalue reference, whether or not Type is a reference type.

Remarks

move makes the returned argument suitable for moving.

Requirements

Header: <utility>

Namespace: std

See Also

Reference

<utility>

Lvalues and Rvalues

Other Resources

<utility> Members