stlab 2.3.0
Modern, modular C++ algorithms, data structures, and concurrency primitives
Loading...
Searching...
No Matches
memory.hpp File Reference

Small memory-related utilities (make_weak_ptr). More...

#include <memory>
#include <stlab/config.hpp>

Go to the source code of this file.

Functions

template<typename T>
auto stlab::make_weak_ptr (const std::shared_ptr< T > &x)
 Returns a std::weak_ptr<T> sharing ownership with x.

Detailed Description

Small memory-related utilities (make_weak_ptr).