summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/profile
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2010-01-09 11:16:42 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2010-01-09 11:16:42 +0000
commit0462fd5e01941647bfb8b3706443fd9de8b585c2 (patch)
treeb65cfa44b240bf709962fbe8c7300b008eb52f83 /libstdc++-v3/include/profile
parent3d876aba229fdb4807f272e10fb0e91505c2fc36 (diff)
downloadgcc-0462fd5e01941647bfb8b3706443fd9de8b585c2.tar.gz
set.h: Revert last change, per DR 1204 [Ready]; mention the latter in comment.
2010-01-09 Paolo Carlini <paolo.carlini@oracle.com> * include/debug/set.h: Revert last change, per DR 1204 [Ready]; mention the latter in comment. * include/debug/unordered_map: Likewise. * include/debug/multiset.h: Likewise. * include/debug/vector: Likewise. * include/debug/unordered_set: Likewise. * include/debug/deque: Likewise. * include/debug/map.h: Likewise. * include/debug/list: Likewise. * include/debug/multimap.h: Likewise. * include/tr1_impl/unordered_map: Likewise. * include/tr1_impl/unordered_set: Likewise. * include/profile/set.h: Likewise. * include/profile/unordered_map: Likewise. * include/profile/multiset.h: Likewise. * include/profile/unordered_set: Likewise. * include/profile/vector: Likewise. * include/profile/deque: Likewise. * include/profile/map.h: Likewise. * include/profile/list: Likewise. * include/profile/multimap.h: Likewise. * include/ext/vstring.h: Likewise. * include/bits/stl_list.h: Likewise. * include/bits/stl_map.h: Likewise. * include/bits/stl_set.h: Likewise. * include/bits/stl_multimap.h: Likewise. * include/bits/stl_vector.h: Likewise. * include/bits/stl_deque.h: Likewise. * include/bits/stl_multiset.h: Likewise. * include/bits/forward_list.h: Remove pre-existing check. * include/ext/vstring.h: Likewise. * testsuite/ext/vstring/cons/self_move_assign.cc: Remove. * testsuite/23_containers/unordered_map/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/multimap/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/set/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/unordered_multimap/cons/ self_move_assign.cc: Likewise. * testsuite/23_containers/forward_list/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/unordered_set/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/vector/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/deque/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/multiset/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/list/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/unordered_multiset/cons/ self_move_assign.cc: Likewise. * testsuite/23_containers/map/cons/self_move_assign.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/forward_list/requirements/dr438/ assign_neg.cc: Likewise. * testsuite/23_containers/forward_list/requirements/dr438/ insert_neg.cc: Likewise. * testsuite/23_containers/forward_list/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/forward_list/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_2_neg.cc: Likewise. From-SVN: r155756
Diffstat (limited to 'libstdc++-v3/include/profile')
-rw-r--r--libstdc++-v3/include/profile/deque10
-rw-r--r--libstdc++-v3/include/profile/list10
-rw-r--r--libstdc++-v3/include/profile/map.h10
-rw-r--r--libstdc++-v3/include/profile/multimap.h10
-rw-r--r--libstdc++-v3/include/profile/multiset.h10
-rw-r--r--libstdc++-v3/include/profile/set.h10
-rw-r--r--libstdc++-v3/include/profile/unordered_map20
-rw-r--r--libstdc++-v3/include/profile/unordered_set20
-rw-r--r--libstdc++-v3/include/profile/vector12
9 files changed, 45 insertions, 67 deletions
diff --git a/libstdc++-v3/include/profile/deque b/libstdc++-v3/include/profile/deque
index 12f45d646fc..55e8d49d686 100644
--- a/libstdc++-v3/include/profile/deque
+++ b/libstdc++-v3/include/profile/deque
@@ -102,12 +102,10 @@ namespace __profile
deque&
operator=(deque&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
diff --git a/libstdc++-v3/include/profile/list b/libstdc++-v3/include/profile/list
index 9979a5211b2..09510a04205 100644
--- a/libstdc++-v3/include/profile/list
+++ b/libstdc++-v3/include/profile/list
@@ -102,12 +102,10 @@ namespace __profile
list&
operator=(list&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
diff --git a/libstdc++-v3/include/profile/map.h b/libstdc++-v3/include/profile/map.h
index 6335ee774f3..fc698a9fa84 100644
--- a/libstdc++-v3/include/profile/map.h
+++ b/libstdc++-v3/include/profile/map.h
@@ -121,12 +121,10 @@ namespace __profile
map&
operator=(map&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
diff --git a/libstdc++-v3/include/profile/multimap.h b/libstdc++-v3/include/profile/multimap.h
index c240e331aa6..d5627ad1d0a 100644
--- a/libstdc++-v3/include/profile/multimap.h
+++ b/libstdc++-v3/include/profile/multimap.h
@@ -106,12 +106,10 @@ namespace __profile
multimap&
operator=(multimap&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
diff --git a/libstdc++-v3/include/profile/multiset.h b/libstdc++-v3/include/profile/multiset.h
index 22c1c53738c..653ba5b4653 100644
--- a/libstdc++-v3/include/profile/multiset.h
+++ b/libstdc++-v3/include/profile/multiset.h
@@ -104,12 +104,10 @@ namespace __profile
multiset&
operator=(multiset&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
diff --git a/libstdc++-v3/include/profile/set.h b/libstdc++-v3/include/profile/set.h
index c5d462747f7..e2e357339dc 100644
--- a/libstdc++-v3/include/profile/set.h
+++ b/libstdc++-v3/include/profile/set.h
@@ -104,12 +104,10 @@ namespace __profile
set&
operator=(set&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
diff --git a/libstdc++-v3/include/profile/unordered_map b/libstdc++-v3/include/profile/unordered_map
index 7ef629a9094..74781de2dd4 100644
--- a/libstdc++-v3/include/profile/unordered_map
+++ b/libstdc++-v3/include/profile/unordered_map
@@ -130,12 +130,10 @@ namespace __profile
unordered_map&
operator=(unordered_map&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
@@ -358,12 +356,10 @@ namespace __profile
unordered_multimap&
operator=(unordered_multimap&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
diff --git a/libstdc++-v3/include/profile/unordered_set b/libstdc++-v3/include/profile/unordered_set
index 8c9e7669c49..62bb1a423bd 100644
--- a/libstdc++-v3/include/profile/unordered_set
+++ b/libstdc++-v3/include/profile/unordered_set
@@ -129,12 +129,10 @@ namespace __profile
unordered_set&
operator=(unordered_set&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
@@ -346,12 +344,10 @@ namespace __profile
unordered_multiset&
operator=(unordered_multiset&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
return *this;
}
diff --git a/libstdc++-v3/include/profile/vector b/libstdc++-v3/include/profile/vector
index 5ae45323dcb..e4e680f8699 100644
--- a/libstdc++-v3/include/profile/vector
+++ b/libstdc++-v3/include/profile/vector
@@ -140,13 +140,11 @@ namespace __profile
vector&
operator=(vector&& __x)
{
- if (this != &__x)
- {
- // NB: DR 675.
- this->clear();
- this->swap(__x);
- }
- return *this;
+ // NB: DR 1204.
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
+ return *this;
}
vector&