aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorPaolo Carlini <paolo@gcc.gnu.org>2014-05-25 08:38:01 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2014-05-25 08:38:01 +0000
commit5a2b79e24dad088bf1fd07759ad75c83e67d641e (patch)
treec7957c1c5d85e764c2e0b84628b674831f8954fc /libstdc++-v3
parent28d8a1607e4577c7e280c9f0406711ab46b6bc14 (diff)
downloadgcc-5a2b79e24dad088bf1fd07759ad75c83e67d641e.zip
gcc-5a2b79e24dad088bf1fd07759ad75c83e67d641e.tar.gz
gcc-5a2b79e24dad088bf1fd07759ad75c83e67d641e.tar.bz2
map.h: Fix typo in comment; minor formatting fix.
2014-05-25 Paolo Carlini <paolo.carlini@oracle.com> * include/profile/map.h: Fix typo in comment; minor formatting fix. * include/profile/multimap.h: Likewise. * include/profile/set.h: Likewise. * include/profile/multiset.h: Likewise. From-SVN: r210912
Diffstat (limited to 'libstdc++-v3')
-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
4 files changed, 20 insertions, 20 deletions
diff --git a/libstdc++-v3/include/profile/map.h b/libstdc++-v3/include/profile/map.h
index 88a5607..cc0f5bb 100644
--- a/libstdc++-v3/include/profile/map.h
+++ b/libstdc++-v3/include/profile/map.h
@@ -451,15 +451,15 @@ namespace __profile
* operations have equivalent insertion cost so we do not update metrics
* about it.
* Note that to find out if hint has been used is libstdc++
- * implementation dependant.
+ * implementation dependent.
*/
bool
_M_hint_used(const_iterator __hint, iterator __res)
{
- return (__hint == __res ||
- (__hint == this->end() && ++__res == this->end()) ||
- (__hint != this->end() && (++__hint == __res ||
- ++__res == --__hint)));
+ return (__hint == __res
+ || (__hint == this->end() && ++__res == this->end())
+ || (__hint != this->end() && (++__hint == __res
+ || ++__res == --__hint)));
}
};
diff --git a/libstdc++-v3/include/profile/multimap.h b/libstdc++-v3/include/profile/multimap.h
index 0605d61..3d25b6e 100644
--- a/libstdc++-v3/include/profile/multimap.h
+++ b/libstdc++-v3/include/profile/multimap.h
@@ -419,15 +419,15 @@ namespace __profile
* operations have equivalent insertion cost so we do not update metrics
* about it.
* Note that to find out if hint has been used is libstdc++
- * implementation dependant.
+ * implementation dependent.
*/
bool
_M_hint_used(const_iterator __hint, iterator __res)
{
- return (__hint == __res ||
- (__hint == this->end() && ++__res == this->end()) ||
- (__hint != this->end() && (++__hint == __res ||
- ++__res == --__hint)));
+ return (__hint == __res
+ || (__hint == this->end() && ++__res == this->end())
+ || (__hint != this->end() && (++__hint == __res
+ || ++__res == --__hint)));
}
};
diff --git a/libstdc++-v3/include/profile/multiset.h b/libstdc++-v3/include/profile/multiset.h
index 63b9e80..2501109 100644
--- a/libstdc++-v3/include/profile/multiset.h
+++ b/libstdc++-v3/include/profile/multiset.h
@@ -413,15 +413,15 @@ namespace __profile
* operations have equivalent insertion cost so we do not update metrics
* about it.
* Note that to find out if hint has been used is libstdc++
- * implementation dependant.
+ * implementation dependent.
*/
bool
_M_hint_used(const_iterator __hint, iterator __res)
{
- return (__hint == __res ||
- (__hint == this->end() && ++__res == this->end()) ||
- (__hint != this->end() && (++__hint == __res ||
- ++__res == --__hint)));
+ return (__hint == __res
+ || (__hint == this->end() && ++__res == this->end())
+ || (__hint != this->end() && (++__hint == __res
+ || ++__res == --__hint)));
}
};
diff --git a/libstdc++-v3/include/profile/set.h b/libstdc++-v3/include/profile/set.h
index ced0350..e8275a4 100644
--- a/libstdc++-v3/include/profile/set.h
+++ b/libstdc++-v3/include/profile/set.h
@@ -399,15 +399,15 @@ namespace __profile
* operations have equivalent insertion cost so we do not update metrics
* about it.
* Note that to find out if hint has been used is libstdc++
- * implementation dependant.
+ * implementation dependent.
*/
bool
_M_hint_used(const_iterator __hint, iterator __res)
{
- return (__hint == __res ||
- (__hint == this->end() && ++__res == this->end()) ||
- (__hint != this->end() && (++__hint == __res ||
- ++__res == --__hint)));
+ return (__hint == __res
+ || (__hint == this->end() && ++__res == this->end())
+ || (__hint != this->end() && (++__hint == __res
+ || ++__res == --__hint)));
}
};