LLFIO  v2.00
kvstore_v1_xxx::traits::is_detachable< T, DetachResultType > Struct Template Reference

True if a type is trivially detachable, or has defined an ADL discovered free function of the form span<byte> in_place_detach<T>(span<byte>). More...

#include "kvstore.hpp"

Static Public Attributes

static constexpr bool value = is_trivially_detachable<T>::value || std::is_same<DetachResultType, span<byte>>::value
 

Detailed Description

template<class T, class DetachResultType = typename detail::safe_get_detach_result<T, span<byte>>::type>
struct kvstore_v1_xxx::traits::is_detachable< T, DetachResultType >

True if a type is trivially detachable, or has defined an ADL discovered free function of the form span<byte> in_place_detach<T>(span<byte>).

The most common custom object detachment action is to reset all pointers and references to all bits zero. When in_place_detach<T> is called, the lifetime of T has ended, so any vptr etc. will be invalid.


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