Wraps a T that can be replaced in place without allocation or indirection.

Synopsis

Base Classes

Name

Description

replaceable_detail::dtor_mixin<T>

Mixin supplying a destructor for Replaceable<T> that matches the destructibility of T.

replaceable_detail::default_and_move_ctor_mixin<T>

Mixin supplying default and move constructors for Replaceable<T> that match the corresponding properties of T.

replaceable_detail::copy_ctor_mixin<T>

Mixin supplying the copy constructor for Replaceable<T> that matches the copy‐constructibility of T.

replaceable_detail::move_assignment_mixin<T>

Mixin supplying the move‐assignment operator for Replaceable<T> that matches the corresponding properties of T.

replaceable_detail::copy_assignment_mixin<T>

Mixin supplying the copy‐assignment operator for Replaceable<T> that matches the corresponding properties of T.

Type Aliases

Name

Description

value_type

The type of the wrapped object.

Member Functions

Name

Description

Replaceable [constructor]

Constructors

~Replaceable [destructor]

Destroys the contained object.

operator=

Assignment operators

emplace

emplace overloads

operator*

Accesses the contained object.

operator‐>

Member access operators

swap

swap just calls swap(T&, T&).

Deduction Guides

Name

Description

Replaceable<T>

Deduces Replaceable<T> from a value of type T.

Friends

Name

Description

folly::replaceable_detail::copy_assignment_mixin

Mixin supplying the copy‐assignment operator for Replaceable<T> that matches the corresponding properties of T.

folly::replaceable_detail::move_assignment_mixin

Mixin supplying the move‐assignment operator for Replaceable<T> that matches the corresponding properties of T.

folly::replaceable_detail::copy_ctor_mixin

Mixin supplying the copy constructor for Replaceable<T> that matches the copy‐constructibility of T.

folly::replaceable_detail::default_and_move_ctor_mixin

Mixin supplying default and move constructors for Replaceable<T> that match the corresponding properties of T.

folly::replaceable_detail::dtor_mixin

Mixin supplying a destructor for Replaceable<T> that matches the destructibility of T.

Non-Member Functions

Name

Description

make_replaceable

Makes a Replaceable<T> by in‐place constructing T from an initializer list and additional arguments.

make_replaceable

Makes a Replaceable<T> by in‐place constructing T from the arguments.

make_replaceable

Makes a Replaceable with a type deduced from its input.

Created with MrDocs