...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Instances of a Dereferenceable type can be used like a pointer to access an lvalue.
In the table below, T
is a model of
Dereferenceable, and x
denotes an object of
type T
. In addition, all pointers are Dereferenceable.
Expression | Result | Operational Semantics |
get_pointer(x) |
convertible to pointee<T>::type*
| &*x , or a null pointer
|
Revised 18 December, 2003
© Copyright Dave Abrahams 2002-2003.
Permission to copy, use, modify, sell and distribute this software is granted provided this copyright notice appears in all copies. This software is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.