std::experimental::unique_resource<R, D>::operator*, std::experimental::unique_resource<R, D>::operator->
來自 cppreference.com
< cpp | experimental | unique_resource
std::add_lvalue_reference_t<std::remove_pointer_t<R>> operator*() const noexcept; |
(1) | (庫基礎 TS v3) |
R operator->() const noexcept; |
(2) | (庫基礎 TS v3) |
1) 訪問底層資源控制代碼(它是一個指標)所指向的物件或函式。此函式僅若 std::is_pointer_v<R> 為 true 且 std::is_void_v<std::remove_pointer_t<R>> 為 false 才參與過載決議。若資源控制代碼未指向物件或函式,則行為未定義。
目錄 |
[編輯] 引數
(無)
[編輯] 返回值
1) 底層資源控制代碼所指向的物件或函式。
2) 底層資源控制代碼的副本。
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 參閱
訪問底層資源控制代碼 (公開成員函式) | |
解引用指向託管物件的指標 ( std::unique_ptr<T,Deleter> 的公開成員函式) |