OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.
std::weak_ptr

Description

std::weak_ptr support

#include <ozo/ext/std/weak_ptr.h>

std::weak_ptr<T> is defined as #Nullable and uses the implementation of ozo::is_null() examing the result of std::weak_ptr::lock() method call.

The ozo::unwrap() function is implemented dereferencing the result of std::weak_ptr::lock() method call.

Note
ozo::unwrap() from std::weak_ptr is not safe for reference holding since no object owning.