Skip to content

Commit

Permalink
set link and remove link to own page
Browse files Browse the repository at this point in the history
  • Loading branch information
suomesta committed Mar 31, 2023
1 parent f09cd87 commit 5e61ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/memory/return_temporary_buffer.md
Expand Up @@ -34,7 +34,7 @@ void return_temporary_buffer(T* p);
## 非推奨・削除の詳細
`std::get_temporary_buffer()`関数と[`std::return_temporary_buffer()`](return_temporary_buffer.md)関数は、関数内での一時的なメモリ確保のために、最適化されたメモリ確保の仕組みを提供することを期待して定義されたが、実際にはどの実装も特別なメモリ確保を行わず、そのために使われてこなかった。
[`get_temporary_buffer()`](get_temporary_buffer.md)関数と`std::return_temporary_buffer()`関数は、関数内での一時的なメモリ確保のために、最適化されたメモリ確保の仕組みを提供することを期待して定義されたが、実際にはどの実装も特別なメモリ確保を行わず、そのために使われてこなかった。
将来的にスタックからメモリ確保をする仕組みが検討されているが、これらの関数は設計として例外安全性やRAIIといったものが考慮されていない。スタックからメモリ確保する機能が入ったとしても、これらの関数の内部を改善することはできないと判断され、非推奨となった。
Expand Down

0 comments on commit 5e61ff5

Please sign in to comment.