libcopp 2.3.1
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions
future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > > Struct Template Reference

#include <storage.h>

Inheritance diagram for future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >:
Inheritance graph
Collaboration diagram for future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >:
Collaboration graph

Public Types

using value_type = T
 
using ptr_type = LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T >
 
using storage_type = ptr_type
 

Static Public Member Functions

static LIBCOPP_UTIL_FORCEINLINE bool is_shared_storage () noexcept
 
static LIBCOPP_UTIL_FORCEINLINE void destroy_storage (storage_type &out) noexcept
 
static LIBCOPP_UTIL_FORCEINLINE void construct_default_storage (storage_type &out) noexcept
 
template<class U , class UDELETOR , typename std::enable_if< std::is_base_of< T, typename std::decay< U >::type >::value, bool >::type = false>
static LIBCOPP_UTIL_FORCEINLINE void construct_storage (storage_type &out, std::unique_ptr< U, UDELETOR > &&in)
 
template<class U , typename std::enable_if< std::is_base_of< T, typename std::decay< U >::type >::value, bool >::type = false>
static LIBCOPP_UTIL_FORCEINLINE void construct_storage (storage_type &out, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< U > &&in) noexcept
 
template<class... TARGS>
static LIBCOPP_UTIL_FORCEINLINE void construct_storage (storage_type &out, TARGS &&...in) noexcept(std::is_nothrow_constructible< T, TARGS... >::value)
 
static LIBCOPP_UTIL_FORCEINLINE void clone_storage (storage_type &out, const storage_type &in) noexcept
 
static LIBCOPP_UTIL_FORCEINLINE void move_storage (storage_type &out, storage_type &&in) noexcept
 
static LIBCOPP_UTIL_FORCEINLINE void swap (storage_type &l, storage_type &r) noexcept
 
static LIBCOPP_UTIL_FORCEINLINE value_typeunwrap (storage_type &storage) noexcept
 
static LIBCOPP_UTIL_FORCEINLINE const value_typeunwrap (const storage_type &storage) noexcept
 
static LIBCOPP_UTIL_FORCEINLINE ptr_type clone_ptr (storage_type &storage) noexcept
 

Detailed Description

template<class T>
struct future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >

Definition at line 330 of file storage.h.

Member Typedef Documentation

◆ ptr_type

template<class T >
using future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::ptr_type = LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr<T>

Definition at line 333 of file storage.h.

◆ storage_type

template<class T >
using future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::storage_type = ptr_type

Definition at line 334 of file storage.h.

◆ value_type

template<class T >
using future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::value_type = T

Definition at line 332 of file storage.h.

Member Function Documentation

◆ clone_ptr()

template<class T >
static LIBCOPP_UTIL_FORCEINLINE ptr_type future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::clone_ptr ( storage_type storage)
inlinestaticnoexcept

Definition at line 379 of file storage.h.

◆ clone_storage()

template<class T >
static LIBCOPP_UTIL_FORCEINLINE void future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::clone_storage ( storage_type out,
const storage_type in 
)
inlinestaticnoexcept

Definition at line 367 of file storage.h.

◆ construct_default_storage()

template<class T >
static LIBCOPP_UTIL_FORCEINLINE void future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::construct_default_storage ( storage_type out)
inlinestaticnoexcept

Definition at line 338 of file storage.h.

◆ construct_storage() [1/3]

template<class T >
template<class U , typename std::enable_if< std::is_base_of< T, typename std::decay< U >::type >::value, bool >::type = false>
static LIBCOPP_UTIL_FORCEINLINE void future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::construct_storage ( storage_type out,
LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< U > &&  in 
)
inlinestaticnoexcept

Definition at line 352 of file storage.h.

◆ construct_storage() [2/3]

template<class T >
template<class U , class UDELETOR , typename std::enable_if< std::is_base_of< T, typename std::decay< U >::type >::value, bool >::type = false>
static LIBCOPP_UTIL_FORCEINLINE void future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::construct_storage ( storage_type out,
std::unique_ptr< U, UDELETOR > &&  in 
)
inlinestatic

Definition at line 342 of file storage.h.

◆ construct_storage() [3/3]

template<class T >
template<class... TARGS>
static LIBCOPP_UTIL_FORCEINLINE void future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::construct_storage ( storage_type out,
TARGS &&...  in 
)
inlinestaticnoexcept

Definition at line 362 of file storage.h.

◆ destroy_storage()

template<class T >
static LIBCOPP_UTIL_FORCEINLINE void future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::destroy_storage ( storage_type out)
inlinestaticnoexcept

Definition at line 337 of file storage.h.

◆ is_shared_storage()

template<class T >
static LIBCOPP_UTIL_FORCEINLINE bool future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::is_shared_storage ( )
inlinestaticnoexcept

Definition at line 336 of file storage.h.

◆ move_storage()

template<class T >
static LIBCOPP_UTIL_FORCEINLINE void future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::move_storage ( storage_type out,
storage_type &&  in 
)
inlinestaticnoexcept

Definition at line 368 of file storage.h.

◆ swap()

template<class T >
static LIBCOPP_UTIL_FORCEINLINE void future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::swap ( storage_type l,
storage_type r 
)
inlinestaticnoexcept

Definition at line 373 of file storage.h.

◆ unwrap() [1/2]

template<class T >
static LIBCOPP_UTIL_FORCEINLINE const value_type * future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::unwrap ( const storage_type storage)
inlinestaticnoexcept

Definition at line 376 of file storage.h.

◆ unwrap() [2/2]

template<class T >
static LIBCOPP_UTIL_FORCEINLINE value_type * future::compact_storage< T, LIBCOPP_COPP_NAMESPACE_ID::memory::strong_rc_ptr< T > >::unwrap ( storage_type storage)
inlinestaticnoexcept

Definition at line 375 of file storage.h.


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