cppreference.com
アカウント作成
ログイン
名前空間
ページ
ノート
変種
表示
表示
編集
履歴
操作
std::raw_storage_iterator<OutputIt,T>::
operator=
From cppreference.com
<
cpp
|
memory
|
raw storage iterator
C++
コンパイラサポート
フリースタンディングとホスト
言語
標準ライブラリ
標準ライブラリヘッダー
名前付き要件
機能テストマクロ
(C++20)
言語サポートライブラリ
コンセプトライブラリ
(C++20)
診断ライブラリ
メモリ管理ライブラリ
メタプログラミングライブラリ
(C++11)
汎用ユーティリティライブラリ
コンテナライブラリ
イテレータライブラリ
Rangesライブラリ
(C++20)
アルゴリズムライブラリ
文字列ライブラリ
テキスト処理ライブラリ
数値ライブラリ
日付と時刻ライブラリ
入出力ライブラリ
ファイルシステムライブラリ
(C++17)
並行サポートライブラリ
(C++11)
実行制御ライブラリ
(C++26)
Technical specifications (技術仕様)
シンボルインデックス
外部ライブラリ
[編集]
メモリ管理ライブラリ
voidify
(
説明用*
)
未初期化メモリのアルゴリズム
uninitialized_copy
uninitialized_fill
uninitialized_move
(C++17)
uninitialized_default_construct
(C++17)
uninitialized_value_construct
(C++17)
destroy
(C++17)
destroy_at
(C++17)
uninitialized_copy_n
(C++11)
uninitialized_fill_n
uninitialized_move_n
(C++17)
uninitialized_default_construct_n
(C++17)
uninitialized_value_construct_n
(C++17)
destroy_n
(C++17)
construct_at
(C++20)
制約付き未初期化
メモリアルゴリズム
ranges::uninitialized_copy
(C++20)
ranges::uninitialized_fill
(C++20)
ranges::uninitialized_move
(C++20)
ranges::construct_at
(C++20)
ranges::destroy
(C++20)
ranges::destroy_n
(C++20)
ranges::destroy_at
(C++20)
ranges::uninitialized_copy_n
(C++20)
ranges::uninitialized_fill_n
(C++20)
ranges::uninitialized_move_n
(C++20)
ranges::uninitialized_default_construct
(C++20)
ranges::uninitialized_value_construct
(C++20)
ranges::uninitialized_default_construct_n
(C++20)
ranges::uninitialized_value_construct_n
(C++20)
Cライブラリ
malloc
calloc
realloc
aligned_alloc
(C++17)
free
アロケータ
allocator
allocator_traits
(C++11)
allocation_result
(C++23)
allocator_arg
(C++11)
uses_allocator
(C++11)
uses_allocator_construction_args
(C++20)
make_obj_using_allocator
(C++20)
uninitialized_construct_using_allocator
(C++20)
scoped_allocator_adaptor
(C++11)
pmr::polymorphic_allocator
(C++17)
メモリリソース
pmr::memory_resource
(C++17)
pmr::get_default_resource
(C++17)
pmr::set_default_resource
(C++17)
pmr::new_delete_resource
(C++17)
pmr::null_memory_resource
(C++17)
pmr::synchronized_pool_resource
(C++17)
pmr::unsynchronized_pool_resource
(C++17)
pmr::monotonic_buffer_resource
(C++17)
pmr::pool_options
(C++17)
ガベージコレクションのサポート
declare_reachable
(C++11)
(C++23まで)
undeclare_reachable
(C++11)
(C++23まで)
declare_no_pointers
(C++11)
(C++23まで)
undeclare_no_pointers
(C++11)
(C++23まで)
pointer_safety
(C++11)
(C++23まで)
get_pointer_safety
(C++11)
(C++23まで)
未初期化ストレージ
raw_storage_iterator
(
C++20まで*
)
get_temporary_buffer
(
C++20まで*
)
return_temporary_buffer
(
C++20まで*
)
明示的な生存期間管理
start_lifetime_as
start_lifetime_as_array
(C++23)
(C++23)
スマートポインタ
unique_ptr
(C++11)
shared_ptr
(C++11)
weak_ptr
(C++11)
auto_ptr
(
C++17まで*
)
owner_less
(C++11)
owner_less<void>
(C++17)
owner_hash
(C++26)
owner_equal
(C++26)
enable_shared_from_this
(C++11)
bad_weak_ptr
(C++11)
default_delete
(C++11)
out_ptr_t
(C++23)
inout_ptr_t
(C++23)
低レベルメモリ
管理
operator new
operator new[]
operator delete
operator delete[]
get_new_handler
(C++11)
set_new_handler
launder
(C++17)
bad_alloc
bad_array_new_length
(C++11)
nothrow_t
align_val_t
(C++17)
destroying_delete_t
(C++20)
new_handler
nothrow
その他
pointer_traits
(C++11)
to_address
(C++20)
addressof
(C++11)
align
(C++11)
assume_aligned
(C++20)
is_sufficiently_aligned
(C++26)
[編集]
std::raw_storage_iterator
メンバ関数
raw_storage_iterator::raw_storage_iterator
raw_storage_iterator::operator=
raw_storage_iterator::operator*
raw_storage_iterator::base
(C++17)
raw_storage_iterator::operator++
raw_storage_iterator::operator++(int)
[編集]
raw_storage_iterator
&
operator
=
(
const
T
&
el
)
;
(1)
raw_storage_iterator
&
operator
=
(
T
&&
el
)
;
(2)
(C++17以降)
1)
イテレータが指す位置に、
el
から値を構築します。
2)
イテレータが指す位置に、
std
::
move
(
el
)
から値を構築します。
[
編集
]
パラメータ
el
-
コピーまたは移動元の値
[
編集
]
戻り値
*
this
English
日本語
中文(简体)
中文(繁體)