Chops Net IP
Loading...
Searching...
No Matches

Common code for accessing std::weak_ptr referenced objects, used in basic_io_interface and net_entity. More...

#include <memory>
#include <system_error>
#include "nonstd/expected.hpp"
#include "net_ip/net_ip_error.hpp"
Include dependency graph for wp_access.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename R , typename WP , typename F >
auto chops::net::detail::wp_access (const WP &wp, F &&func) -> nonstd::expected< R, std::error_code >
 
template<typename WP , typename F >
auto chops::net::detail::wp_access_void (const WP &wp, F &&func) -> nonstd::expected< void, std::error_code >
 

Detailed Description

Common code for accessing std::weak_ptr referenced objects, used in basic_io_interface and net_entity.

Note
For internal use only.
Author
Cliff Green

Copyright (c) 2019 by Cliff Green

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)