libcopp  2.2.0
Static Public Member Functions
core::standard_new_allocator Class Reference

#include <standard_new_allocator.h>

Collaboration diagram for core::standard_new_allocator:
Collaboration graph

Static Public Member Functions

template<class Ty , class... TARGS>
static std::shared_ptr< Ty > allocate (Ty *, TARGS &&...args)
 allocate a object More...
 
template<class Ty >
static void deallocate (std::shared_ptr< Ty > &)
 

Detailed Description

Definition at line 19 of file standard_new_allocator.h.

Member Function Documentation

◆ allocate()

template<class Ty , class... TARGS>
static std::shared_ptr<Ty> core::standard_new_allocator::allocate ( Ty *  ,
TARGS &&...  args 
)
inlinestatic

allocate a object

Parameters
argsconstruct parameters
Returns
pointer of new object

Definition at line 27 of file standard_new_allocator.h.

◆ deallocate()

template<class Ty >
static void core::standard_new_allocator::deallocate ( std::shared_ptr< Ty > &  )
inlinestatic

Definition at line 32 of file standard_new_allocator.h.


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