template< class W >
class observer_ptr;
std::experimental::observer_ptr
is a non-owning pointer, or observer. The observer stores a pointer to a second object, known as the watched object. An observer_ptr
may also have no watched object.
An observer is not responsible in any way for the watched object; there is no inherent relationship between an observer and the object it watches.
It is intended as a near drop-in replacement for raw pointer types, with the advantage that, as a vocabulary type, it indicates its intended use without need for detailed analysis by code readers.
Specializations of observer_ptr
satisfy the requirements of CopyConstructible and CopyAssignable.
W
shall not be a reference type, but may be an incomplete type. [edit] Member types Member type Definition element_type W
, the type of the object watched by this observer_ptr
[edit] Member functions constructs a new observer_ptr
(destructor)
(implicitly declared)
destructs anobserver_ptr
operator=
(implicitly declared)
implicitly declared copy and move assignment operators that assign the stored pointerRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4