File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
forward_list/forward_list Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ void merge(forward_list&& x, Compare comp); // (4)
4545
4646## 備考
4747- この操作は安定である。
48- - `this->`[`get_allocator()`](get_allocator.md) `!= x.`[`get_allocator()`](get_allocator.md)である場合、その振る舞いは未定義 。(C++14)
48+ - `this->`[`get_allocator()`](get_allocator.md) `!= x.`[`get_allocator()`](get_allocator.md)である場合、未定義動作となる 。(C++14)
4949
5050
5151## 例
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ void swap(unordered_map& x)
2828
2929また、コンテナの `key_equal` と `hasher` のオブジェクト(それぞれ [`key_eq`](key_eq.md)`()` と [`hash_function`](hash_function.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で(つまり `std::` を付けずに)呼び出すことで交換される。(したがって、[`swap`](/reference/utility/swap.md) の呼び出しには ADL が働く。)
3030
31- もし、`std::`[`allocator_traits`](/reference/memory/allocator_traits.md)`<allocator_type>::propagate_on_container_swap::value` が `true` であれば、アロケータオブジェクト([`get_allocator`](get_allocator.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で呼び出すことで交換される。そうでなければアロケータオブジェクトは交換されず、その場合、当該コンテナと引数 `v` がそれぞれ [`get_allocator`](get_allocator.md)`()` で返すオブジェクトが等価でない(`operator==` が `true` を返さない)場合、振る舞いは未定義(undefined)である 。
31+ もし、`std::`[`allocator_traits`](/reference/memory/allocator_traits.md)`<allocator_type>::propagate_on_container_swap::value` が `true` であれば、アロケータオブジェクト([`get_allocator`](get_allocator.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で呼び出すことで交換される。そうでなければアロケータオブジェクトは交換されず、その場合、当該コンテナと引数 `v` がそれぞれ [`get_allocator`](get_allocator.md)`()` で返すオブジェクトが等価でない(`operator==` が `true` を返さない)場合、未定義動作となる 。
3232
3333
3434## 戻り値
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ void swap(unordered_multimap& x)
2828
2929また、コンテナの `key_equal` と `hasher` のオブジェクト(それぞれ [`key_eq`](key_eq.md)`()` と [`hash_function`](hash_function.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で(つまり `std::` を付けずに)呼び出すことで交換される。(したがって、[`swap`](/reference/utility/swap.md) の呼び出しには ADL が働く。)
3030
31- もし、`std::`[`allocator_traits`](/reference/memory/allocator_traits.md)`<allocator_type>::propagate_on_container_swap::value` が `true` であれば、アロケータオブジェクト([`get_allocator`](get_allocator.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で呼び出すことで交換される。そうでなければアロケータオブジェクトは交換されず、その場合、当該コンテナと引数 `v` がそれぞれ [`get_allocator`](get_allocator.md)`()` で返すオブジェクトが等価でない(`operator==` が `true` を返さない)場合、振る舞いは未定義(undefined)である 。
31+ もし、`std::`[`allocator_traits`](/reference/memory/allocator_traits.md)`<allocator_type>::propagate_on_container_swap::value` が `true` であれば、アロケータオブジェクト([`get_allocator`](get_allocator.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で呼び出すことで交換される。そうでなければアロケータオブジェクトは交換されず、その場合、当該コンテナと引数 `v` がそれぞれ [`get_allocator`](get_allocator.md)`()` で返すオブジェクトが等価でない(`operator==` が `true` を返さない)場合、未定義動作となる 。
3232
3333
3434## 戻り値
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ void swap(unordered_multiset& x)
2828
2929また、コンテナの `key_equal` と `hasher` のオブジェクト(それぞれ [`key_eq`](key_eq.md)`()` と [`hash_function`](hash_function.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で(つまり `std::` を付けずに)呼び出すことで交換される。(したがって、[`swap`](/reference/utility/swap.md) の呼び出しには ADL が働く。)
3030
31- もし、`std::`[`allocator_traits`](/reference/memory/allocator_traits.md)`<allocator_type>::propagate_on_container_swap::value` が `true` であれば、アロケータオブジェクト([`get_allocator`](get_allocator.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で呼び出すことで交換される。そうでなければアロケータオブジェクトは交換されず、その場合、当該コンテナと引数 `v` がそれぞれ [`get_allocator`](get_allocator.md)`()` で返すオブジェクトが等価でない(`operator==` が `true` を返さない)場合、振る舞いは未定義(undefined)である 。
31+ もし、`std::`[`allocator_traits`](/reference/memory/allocator_traits.md)`<allocator_type>::propagate_on_container_swap::value` が `true` であれば、アロケータオブジェクト([`get_allocator`](get_allocator.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で呼び出すことで交換される。そうでなければアロケータオブジェクトは交換されず、その場合、当該コンテナと引数 `v` がそれぞれ [`get_allocator`](get_allocator.md)`()` で返すオブジェクトが等価でない(`operator==` が `true` を返さない)場合、未定義動作となる 。
3232
3333
3434## 戻り値
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ void swap(unordered_set& x)
2828
2929また、コンテナの `key_equal` と `hasher` のオブジェクト(それぞれ [`key_eq`](key_eq.md)`()` と [`hash_function`](hash_function.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で(つまり `std::` を付けずに)呼び出すことで交換される。(したがって、[`swap`](/reference/utility/swap.md) の呼び出しには ADL が働く。)
3030
31- もし、`std::`[`allocator_traits`](/reference/memory/allocator_traits.md)`<allocator_type>::propagate_on_container_swap::value` が `true` であれば、アロケータオブジェクト([`get_allocator`](get_allocator.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で呼び出すことで交換される。そうでなければアロケータオブジェクトは交換されず、その場合、当該コンテナと引数 `v` がそれぞれ [`get_allocator`](get_allocator.md)`()` で返すオブジェクトが等価でない(`operator==` が `true` を返さない)場合、振る舞いは未定義(undefined)である 。
31+ もし、`std::`[`allocator_traits`](/reference/memory/allocator_traits.md)`<allocator_type>::propagate_on_container_swap::value` が `true` であれば、アロケータオブジェクト([`get_allocator`](get_allocator.md)`()` が返すオブジェクト)も非メンバ関数 [`swap`](/reference/utility/swap.md) を非修飾で呼び出すことで交換される。そうでなければアロケータオブジェクトは交換されず、その場合、当該コンテナと引数 `v` がそれぞれ [`get_allocator`](get_allocator.md)`()` で返すオブジェクトが等価でない(`operator==` が `true` を返さない)場合、未定義動作となる 。
3232
3333
3434## 戻り値
You can’t perform that action at this time.
0 commit comments