名前空間
変種
操作

std::scoped_allocator_adaptor::destroy

提供: cppreference.com

 
 
動的メモリ管理
未初期化記憶域
(C++17)
ガベージコレクションサポート
その他
(C++20)
(C++11)
(C++11)
C のライブラリ
低水準のメモリ管理
 
std::scoped_allocator_adaptor
メンバ関数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
scoped_allocator_adaptor::destroy
非メンバ関数
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
ヘッダ <scoped_allocator> で定義
template< class T >
void destroy( T* p );
(C++11およびそれ以降)
を呼び出すことによって、pが指すオブジェクトのデストラクタを呼び出すために外側のアロケータを使用しています
Original:
Uses the outer allocator to call the destructor of the object pointed to by p, by calling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

std::allocator_traits<OUTERMOST>::destroy(OUTERMOST(*this), p)

this->outer_allocator()を呼び出し、次にそのようなメンバ関数を持たない型に到達するまで、この呼び出しの結果に再帰的にouter_allocator()メンバ関数を呼び出して、返される型はどこに一番外側のです.
Original:
where OUTERMOST is the type that would be returned by calling this->outer_allocator(), and then calling the outer_allocator() member function recursively on the result of this call until reaching the type that has no such member function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] パラメータ

p -
破壊されようとしているオブジェクトへのポインタ
Original:
pointer to the object that is going to be destroyed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

(なし)

[編集] 参照

[static]
割り当てられたストレージに格納されているオブジェクトを破棄します
Original:
destructs an object stored in the allocated storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
(C++17で非推奨)(C++20で削除)
確保された記憶域のオブジェクトを破棄します
(std::allocatorのパブリックメンバ関数) [edit]