Skip to content

Commit ff2c410

Browse files
committed
用語統一 : 「振る舞いは未定義」 → 「未定義動作となる」 #1348
1 parent 37b7a43 commit ff2c410

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

reference/forward_list/forward_list/merge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
## 例

reference/unordered_map/unordered_map/swap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
## 戻り値

reference/unordered_map/unordered_multimap/swap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
## 戻り値

reference/unordered_set/unordered_multiset/swap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
## 戻り値

reference/unordered_set/unordered_set/swap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
## 戻り値

0 commit comments

Comments
 (0)