folly::manual_safe_val_t

A value wrapper that manually asserts the safe_alias level S.

Synopsis

Declared in <folly/lang/SafeAlias.h>

template<
    safe_alias S,
    typename T>
struct manual_safe_val_t;

Type Aliases

NameDescription
folly_private_safe_alias_t Reports the manually-asserted safety level S to safe_alias_of.
type The type of the wrapped value.

Member Functions

NameDescription
manual_safe_val_t [constructor]Constructors
get get overloads
operator T& Converts to a reference to the wrapped value.
operator T&& Converts to an rvalue reference to the wrapped value.
operator T const& Converts to a const reference to the wrapped value.

Non-Member Functions

NameDescription
manual_safe_valWraps a value, asserting the given safety level; see manual_safe_val_t.