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
This commit is contained in:
parent
28d8a1607e
commit
5a2b79e24d
4 changed files with 20 additions and 20 deletions
|
@ -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)));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue