folly::rvalue_reference_wrapper::rvalue_reference_wrapper

Constructors

Synopses

Declared in <folly/lang/RValueReferenceWrapper.h>

Default constructor. Creates an invalid reference. Must be move-assigned to in order to be come valid.

rvalue_reference_wrapper() noexcept;
» more...

Destructive move construction.

rvalue_reference_wrapper(rvalue_reference_wrapper<T>&& other) noexcept;
» more...

No construction from lvalue reference. Use std::move.

explicit
rvalue_reference_wrapper(T& ref) noexcept = delete;
» more...

Explicit constructor to make it harder to accidentally create a dangling reference to a temporary.

explicit
rvalue_reference_wrapper(T&& ref) noexcept;
» more...

Parameters

NameDescription
otherWrapper to move from; left invalid afterward
refLvalue reference; this overload is deleted