VLink  2.0.0
A high-performance communication middleware
vlink::MemoryResource Namespace Reference

Fallback shim when <memory_resource> is unavailable. More...

Functions

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

Detailed Description

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.

Function Documentation

◆ 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.

Here is the caller graph for this function:

◆ 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.