Namespaces
Variants
Views
Actions

std::experimental::shared_ptr::operator*, std::experimental::shared_ptr::operator->

From cppreference.com
 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Extensions for concurrency (concurrency TS)
Concepts (concepts TS)
Ranges (ranges TS)
Special mathematical functions (special math TR)
 
 
 
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.

Contents

[edit] Parameters

(none)

[edit] Return value

1) The result of dereferencing the stored pointer, i.e., *get()
2) The stored pointer, i.e., get()

[edit] 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.

[edit] Example

[edit] See also

returns the stored pointer
(public member function) [edit]