std::declare_no_pointers
提供: cppreference.com
<tbody>
</tbody>
| ヘッダ <memory> で定義
|
||
void declare_no_pointers( char *p, std::size_t n ); |
(C++11以上) | |
指定したメモリ領域 (p の指すバイトから始まる n バイト) が追跡可能なポインタを含まないことをガベージコレクタやリーク検出ツールに知らせます。 その領域の任意の部分が確保されたオブジェクト内の場合、その領域全体がその同じオブジェクト内に含まれなければなりません。
引数
| p | - | 範囲の先頭を指すポインタ |
| n | - | 範囲のバイト数 |
戻り値
(なし)
例外
(なし)
例
| This section is incomplete Reason: no example |
関連項目
(C++11) |
std::declare_no_pointers の効果を取り消します (関数) |