Fields if TAllocator is default constructible (e.g., HeapAllocator).
Definition at line 69 of file sharedval.hpp.
#include <sharedval.hpp>
Public Static Method Index: | |
static constexpr TAllocator | GetAllocator () noexcept |
Public Field Index: | |
T | custom |
The instance of the custom type. | |
std::atomic< unsigned int > | refCount |
The reference counter used to implement the std::shared_ptr behavior. | |
Public Method Index: | |
template<typename... TArgs, typename TEnableIf = TAllocator, ATMP_IF(std::is_default_constructible< TEnableIf >::value) > | |
FieldMembersNoTA (TArgs &&... args) | |
T custom |
The instance of the custom type.
Definition at line 72 of file sharedval.hpp.
std::atomic<unsigned int> refCount |
The reference counter used to implement the std::shared_ptr
behavior.
Definition at line 75 of file sharedval.hpp.
|
inline |
Alternative constructor missing the allocator instance. This is used only with allocators that are default constructible (like HeapAllocator is).
TArgs | The argument types used for constructing T. |
args | The arguments for constructing T. |
Definition at line 84 of file sharedval.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 89 of file sharedval.hpp.