libcopp  2.2.0
Public Types
future::compact_storage_selector< T > Struct Template Reference

#include <storage.h>

Collaboration diagram for future::compact_storage_selector< T >:
Collaboration graph

Public Types

using type = typename std::conditional< COPP_IS_TIRVIALLY_COPYABLE_V(T) &&sizeof(T)<=(sizeof(size_t)<< 2), std::unique_ptr< T, small_object_optimize_storage_deleter< T > >, std::shared_ptr< T > >::type
 

Detailed Description

template<class T>
struct future::compact_storage_selector< T >

Definition at line 75 of file storage.h.

Member Typedef Documentation

◆ type

template<class T >
using future::compact_storage_selector< T >::type = typename std::conditional<COPP_IS_TIRVIALLY_COPYABLE_V(T) && sizeof(T) <= (sizeof(size_t) << 2), std::unique_ptr<T, small_object_optimize_storage_deleter<T> >, std::shared_ptr<T> >::type

Definition at line 76 of file storage.h.


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