folly::replaceable_detail::dtor_mixin

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

Synopsis

Declared in <folly/Replaceable.h>

template<
    class T,
    bool = std::is_destructible<T>::value,
    bool = std::is_trivially_destructible<T>::value>
struct dtor_mixin;

Specializations

Name
dtor_mixin<T, true, false>
dtor_mixin<T, true, true>
dtor_mixin<T, false, A>

Derived Classes

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