boost.png (6897 bytes)

<boost/utility/addressof.hpp>

The header <boost/utility/addressof.hpp> defines the function template boost::addressof. boost::addressof(x) returns the address of x. Ordinarily, this address can be obtained by &x, but the unary & operator can be overloaded.

boost::addressof was originally contributed by Brad King based on ideas from discussion with Doug Gregor.


Copyright © 2014 by Peter Dimov. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.