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

Description

boost::weak_ptr support

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

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

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

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