From Jason Turner

[inout.ptr]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp0lmj9yk0/{from.md → to.md} +13 -0
tmp/tmp0lmj9yk0/{from.md → to.md} RENAMED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Function template `inout_ptr` <a id="inout.ptr">[[inout.ptr]]</a>
2
+
3
+ ``` cpp
4
+ template<class Pointer = void, class Smart, class... Args>
5
+ auto inout_ptr(Smart& s, Args&&... args);
6
+ ```
7
+
8
+ Let `P` be `Pointer` if `is_void_v<Pointer>` is `false`, otherwise
9
+ *`POINTER_OF`*`(Smart)`.
10
+
11
+ *Returns:*
12
+ `inout_ptr_t<Smart, P, Args&&...>(s, std::forward<Args>(args)...)`.
13
+