LLFIO  v2.00 late beta
kvstore_v1_xxx::traits::is_attachable< T, AttachResultType > Struct Template Reference

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

#include "kvstore.hpp"

Static Public Attributes

static constexpr bool value = is_trivially_attachable<T>::value || std::is_same<AttachResultType, span<byte>>::value
 

Detailed Description

template<class T, class AttachResultType = typename detail::safe_get_attach_result<T, span<byte>>::type>
struct kvstore_v1_xxx::traits::is_attachable< T, AttachResultType >

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

The most common custom object attachment action is to initialise all pointers and references with something valid for the running C++ program. When in_place_attach<T> is called, the lifetime of T has not yet begun, so any vptr etc. will be invalid.


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