Commit 5a2b79e2 by Paolo Carlini

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
parent 28d8a160
...@@ -451,15 +451,15 @@ namespace __profile ...@@ -451,15 +451,15 @@ namespace __profile
* operations have equivalent insertion cost so we do not update metrics * operations have equivalent insertion cost so we do not update metrics
* about it. * about it.
* Note that to find out if hint has been used is libstdc++ * Note that to find out if hint has been used is libstdc++
* implementation dependant. * implementation dependent.
*/ */
bool bool
_M_hint_used(const_iterator __hint, iterator __res) _M_hint_used(const_iterator __hint, iterator __res)
{ {
return (__hint == __res || return (__hint == __res
(__hint == this->end() && ++__res == this->end()) || || (__hint == this->end() && ++__res == this->end())
(__hint != this->end() && (++__hint == __res || || (__hint != this->end() && (++__hint == __res
++__res == --__hint))); || ++__res == --__hint)));
} }
}; };
......
...@@ -419,15 +419,15 @@ namespace __profile ...@@ -419,15 +419,15 @@ namespace __profile
* operations have equivalent insertion cost so we do not update metrics * operations have equivalent insertion cost so we do not update metrics
* about it. * about it.
* Note that to find out if hint has been used is libstdc++ * Note that to find out if hint has been used is libstdc++
* implementation dependant. * implementation dependent.
*/ */
bool bool
_M_hint_used(const_iterator __hint, iterator __res) _M_hint_used(const_iterator __hint, iterator __res)
{ {
return (__hint == __res || return (__hint == __res
(__hint == this->end() && ++__res == this->end()) || || (__hint == this->end() && ++__res == this->end())
(__hint != this->end() && (++__hint == __res || || (__hint != this->end() && (++__hint == __res
++__res == --__hint))); || ++__res == --__hint)));
} }
}; };
......
...@@ -413,15 +413,15 @@ namespace __profile ...@@ -413,15 +413,15 @@ namespace __profile
* operations have equivalent insertion cost so we do not update metrics * operations have equivalent insertion cost so we do not update metrics
* about it. * about it.
* Note that to find out if hint has been used is libstdc++ * Note that to find out if hint has been used is libstdc++
* implementation dependant. * implementation dependent.
*/ */
bool bool
_M_hint_used(const_iterator __hint, iterator __res) _M_hint_used(const_iterator __hint, iterator __res)
{ {
return (__hint == __res || return (__hint == __res
(__hint == this->end() && ++__res == this->end()) || || (__hint == this->end() && ++__res == this->end())
(__hint != this->end() && (++__hint == __res || || (__hint != this->end() && (++__hint == __res
++__res == --__hint))); || ++__res == --__hint)));
} }
}; };
......
...@@ -399,15 +399,15 @@ namespace __profile ...@@ -399,15 +399,15 @@ namespace __profile
* operations have equivalent insertion cost so we do not update metrics * operations have equivalent insertion cost so we do not update metrics
* about it. * about it.
* Note that to find out if hint has been used is libstdc++ * Note that to find out if hint has been used is libstdc++
* implementation dependant. * implementation dependent.
*/ */
bool bool
_M_hint_used(const_iterator __hint, iterator __res) _M_hint_used(const_iterator __hint, iterator __res)
{ {
return (__hint == __res || return (__hint == __res
(__hint == this->end() && ++__res == this->end()) || || (__hint == this->end() && ++__res == this->end())
(__hint != this->end() && (++__hint == __res || || (__hint != this->end() && (++__hint == __res
++__res == --__hint))); || ++__res == --__hint)));
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment