Skip to content

Commit da84203

Browse files
committed
[out.ptr.t,inout.ptr.t] Apply editorial fixes from P1132R8.
1 parent c76add3 commit da84203

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/utilities.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11548,9 +11548,9 @@
1154811548
\rSec2[out.ptr.t]{Class template \tcode{out_ptr_t}}
1154911549

1155011550
\pnum
11551-
\tcode{out_ptr_t} is a class template used types
11551+
\tcode{out_ptr_t} is a class template used to adapt types
1155211552
such as smart pointers\iref{smartptr},
11553-
with functions that use output pointer parameters.
11553+
for functions that use output pointer parameters.
1155411554

1155511555
\pnum
1155611556
\begin{example}
@@ -11767,9 +11767,9 @@
1176711767
\rSec2[inout.ptr.t]{Class template \tcode{inout_ptr_t}}
1176811768

1176911769
\pnum
11770-
\tcode{inout_ptr_t} is a class template used types
11770+
\tcode{inout_ptr_t} is a class template used to adapt types
1177111771
such as smart pointers\iref{smartptr},
11772-
with functions that use output pointer parameters
11772+
for functions that use output pointer parameters
1177311773
whose dereferenced values may first be deleted
1177411774
before being set to another allocated value.
1177511775

@@ -11778,20 +11778,20 @@
1177811778
\begin{codeblock}
1177911779
#include <memory>
1178011780

11781-
struct StarFish* starfish_alloc();
11782-
int starfish_populate(struct StarFish** ps, const char *description);
11781+
struct star_fish* star_fish_alloc();
11782+
int star_fish_populate(struct star_fish** ps, const char* description);
1178311783

11784-
struct StarFishDeleter {
11785-
void operator() (struct StarFish* c) const noexcept;
11784+
struct star_fish_deleter {
11785+
void operator() (struct star_fish* c) const noexcept;
1178611786
};
1178711787

11788-
using StarFishPtr = std::unique_ptr<StarFish, StarFishDeleter>;
11788+
using star_fish_ptr = std::unique_ptr<star_fish, star_fish_deleter>;
1178911789

1179011790
int main(int, char*[]) {
11791-
StarFishPtr peach(starfish_context());
11791+
star_fish_ptr peach(star_fish_context());
1179211792
// ...
1179311793
// used, need to re-make
11794-
int err = starfish_populate(std::inout_ptr(peach), "caring clown-fish liker");
11794+
int err = star_fish_populate(std::inout_ptr(peach), "caring clown-fish liker");
1179511795
return err;
1179611796
}
1179711797
\end{codeblock}

0 commit comments

Comments
 (0)