proxygen
folly::replaceable_detail::dtor_mixin< T, true, false > Struct Template Reference

#include <Replaceable.h>

Public Member Functions

 dtor_mixin ()=default
 
 dtor_mixin (dtor_mixin &&)=default
 
 dtor_mixin (dtor_mixin const &)=default
 
dtor_mixinoperator= (dtor_mixin &&)=default
 
dtor_mixinoperator= (dtor_mixin const &)=default
 
 ~dtor_mixin () noexcept(std::is_nothrow_destructible< T >::value)
 

Detailed Description

template<class T>
struct folly::replaceable_detail::dtor_mixin< T, true, false >

Definition at line 153 of file Replaceable.h.

Constructor & Destructor Documentation

template<class T >
folly::replaceable_detail::dtor_mixin< T, true, false >::dtor_mixin ( )
default
template<class T >
folly::replaceable_detail::dtor_mixin< T, true, false >::dtor_mixin ( dtor_mixin< T, true, false > &&  )
default
template<class T >
folly::replaceable_detail::dtor_mixin< T, true, false >::dtor_mixin ( dtor_mixin< T, true, false > const &  )
default
template<class T >
folly::replaceable_detail::dtor_mixin< T, true, false >::~dtor_mixin ( )
inlinenoexcept

Definition at line 159 of file Replaceable.h.

References folly::launder(), and folly::T.

159  {
160  T* destruct_ptr = launder(reinterpret_cast<T*>(
161  reinterpret_cast<Replaceable<T>*>(this)->storage_));
162  destruct_ptr->~T();
163  }
folly::std T
FOLLY_NODISCARD T * launder(T *in) noexcept
Definition: Launder.h:48

Member Function Documentation

template<class T >
dtor_mixin& folly::replaceable_detail::dtor_mixin< T, true, false >::operator= ( dtor_mixin< T, true, false > &&  )
default
template<class T >
dtor_mixin& folly::replaceable_detail::dtor_mixin< T, true, false >::operator= ( dtor_mixin< T, true, false > const &  )
default

The documentation for this struct was generated from the following file: