| T& operator*() const noexcept; |
(1) | (library fundamentals TS) |
| T* operator->() const noexcept; |
(2) | (library fundamentals TS) |
Dereferences the stored pointer. The behavior is undefined if the stored pointer is null.
Parameters
(none)
Return value
*get().get().Remarks
When T is an array type or (possibly cv-qualified) void, it is unspecified whether function (1) is declared.
When T is an array type, it is unspecified whether function (2) is declared.
In either case, if the function is declared, it is unspecified what its return type is, except that the declaration (although not necessarily the definition) of the function is guaranteed to be legal.
Example
Reason: no example
See also
| returns the stored pointer (public member function) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.