folly::bind::ext::deduce_args_t

Deduces the stored binding type for a value passed to args and friends.

Synopsis

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

template<typename T>
using deduce_args_t = std::conditional_t<std::derived_from<T, like_args>, T, T&&>;

Description

Cosmetic: makes the signatures of bind::args<> and similar templates show rvalue reference bindings with &&.