folly::ext::must_use_immediately_private_t

Passkey for the static unsafe_mover members of must-use-immediately types.

Synopsis

Declared in <folly/lang/MustUseImmediately.h>

class must_use_immediately_private_t;

Description

Many must-use-immediately types will provide the static member unsafe_mover(must_use_immediately_private_t, Me&&). This passkey type prevents member name collisions.

Friends

NameDescription
folly::ext::must_use_immediately_unsafe_moverObtain a mover that destructively moves t out of a must-use-immediately type, so it can be reconstituted later via the mover's operator().