mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-12-04 16:09:24 +01:00
Tweaks.
[SVN r12715]
This commit is contained in:
@@ -178,10 +178,10 @@ See the smart pointer
|
||||
<a href="smart_ptr.htm#Common requirements">common requirements</a>.</p>
|
||||
<p>The <b>operator<</b> overload is provided to define an ordering so that <b>weak_ptr</b>
|
||||
objects can be used in associative containers such as <b>std::map</b>.
|
||||
The implementation uses std::less<T*> to perform the
|
||||
The implementation uses <b>std::less<T *></b> to perform the
|
||||
comparison. This ensures that the comparison is handled correctly, since the
|
||||
standard mandates that relational operations on pointers are unspecified (5.9 [expr.rel]
|
||||
paragraph 2) but std::less<> on pointers is well-defined (20.3.3 [lib.comparisons]
|
||||
paragraph 2) but <b>std::less<></b> on pointers is well-defined (20.3.3 [lib.comparisons]
|
||||
paragraph 8).</p>
|
||||
|
||||
<h3><a name="free-swap">swap</a></h3>
|
||||
|
||||
Reference in New Issue
Block a user