folly::bind::ext::category_t

Category flag controlling how a bound argument is passed or stored.

Synopsis

Declared in <folly/lang/bind/Bind.h>

enum class category_t : int;

Members

NameDescription
unset The policy decides; standard storage uses value, argument-binding uses ref.
ref Follows the reference category of the input, i.e. InputT&&.
value Copies or moves, depending on the input ref type.
copy Store: like value but fails on rvalue input; argument: pass folly::copy().
move Store: like value but fails on lvalue input; argument: pass the rvalue ref.