名前空間
変種
操作

std::allocator<T>::address

提供: cppreference.com
< cpp‎ | memory‎ | allocator
 
 
動的メモリ管理
スマートポインタ
(C++11)
(C++11)
(C++11)
(C++17未満)
(C++11)
アロケータ
メモリリソース
未初期化記憶域
ガベージコレクションサポート
その他
(C++20)
(C++11)
(C++11)
C のライブラリ
低水準のメモリ管理
 
std::allocator
メンバ関数
allocator::address
(C++20未満)
(C++20未満)
(C++20未満)
非メンバ関数
 
pointer address( reference x ) const;
(C++11未満)
pointer address( reference x ) const noexcept;
(C++11以上)
(C++17で非推奨)
(C++20で削除)
const_pointer address( const_reference x ) const;
(C++11未満)
const_pointer address( const_reference x ) const noexcept;
(C++11以上)
(C++17で非推奨)
(C++20で削除)

operator& がオーバーロードされている場合でも x の実際のアドレスを返します。

[編集] 引数

x - アドレスを取得するオブジェクト

[編集] 戻り値

x の実際のアドレス。