VLink  2.0.0
A high-performance communication middleware
vlink::MemoryResource 命名空间参考

Fallback shim when <memory_resource> is unavailable. 更多...

函数

template<typename T , typename... Args>
std::shared_ptr< T > make_shared (Args &&... args)
 Fallback make_shared forwarding to std::make_shared. 更多...
 
template<typename T , typename... Args>
std::unique_ptr< T > make_unique (Args &&... args)
 Fallback make_unique forwarding to std::make_unique. 更多...
 

详细描述

Fallback shim when <memory_resource> is unavailable.

Only make_shared and make_unique are emulated by forwarding to the corresponding std versions. The MemoryResource class, the Deleter alias and global_instance are not provided in this mode.

函数说明

◆ make_shared()

template<typename T , typename... Args>
std::shared_ptr<T> vlink::MemoryResource::make_shared ( Args &&...  args)

Fallback make_shared forwarding to std::make_shared.

这是这个函数的调用关系图:

◆ make_unique()

template<typename T , typename... Args>
std::unique_ptr<T> vlink::MemoryResource::make_unique ( Args &&...  args)

Fallback make_unique forwarding to std::make_unique.