std::experimental::unique_resource<R, D>::operator*, std::experimental::unique_resource<R, D>::operator->
From cppreference.com
< cpp | experimental | unique resource
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Experimental
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
std::experimental::unique_resource
Member functions
Modifiers
Observers
unique_resource::operator*unique_resource::operator->
Non-member functions
std::add_lvalue_reference_t <std::remove_pointer_t <R>>
operator*() const noexcept;
(1)
(library fundamentals TS v3)
operator*() const noexcept;
R operator->() const noexcept;
(2)
(library fundamentals TS v3)
1) Access the object or function pointed by the underlying resource handle which is a pointer. This function participates in overload resolution only if std::is_pointer_v <R> is true and std::is_void_v <std::remove_pointer_t <R>> is false. If the resource handle is not pointing to an object or a function, the behavior is undefined.
2) Get a copy of the underlying resource handle which is a pointer. This function participates in overload resolution only if std::is_pointer_v <R> is true. The return value is typically used to access the pointed object.
Contents
[edit] Parameters
(none)
[edit] Return value
1) The object or function pointed by the underlying resource handle.
2) Copy of the underlying resource handle.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
dereferences pointer to the managed object
(public member function of
(public member function of
std::unique_ptr<T,Deleter>
) [edit]