move(3) | move(3) |
move - cast to xvalue
#include <cfl/utilities/move.hpp>
int i {0};
decltype (move (i)) == int &&;
Identical to std::move
, casts an argument to an value.
Belongs to the group of functions used to modify function argument cv and reference qualification.
Not a container function.
Should be applied with caution, as it may produce a dangling reference. In particular, the rule for extending the lifetime of a prvalue bound to a reference does not apply through a function call.
copy(3), constfwd(3)