Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/reference/cpp/arenas.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ The following code makes inefficient usage of the `release_...()` API:
```cpp
arena_message_2->set_allocated_nested_message(arena_message_1->release_nested_message());

arena_message_1->release_message(); // returns a copy of the underlying nested_message and deletes underlying pointer
arena_message_1->release_nested_message(); // returns a copy of the underlying nested_message and deletes underlying pointer
```

Using the "unsafe arena" version instead avoids the copy:
Expand Down