@@ -11,7 +11,7 @@
< h1 > < img src = "../../c++boost.gif" alt = "c++boost.gif (8819 bytes)" align = "center" width = "277" height = "86" > Header
< h1 > < img src = "../../c++boost.gif" alt = "c++boost.gif (8819 bytes)" align = "center" width = "277" height = "86" > Header
< a href = "../../boost/operators.hpp" > boost/operators.hpp< / a > < / h1 >
< a href = "../../boost/operators.hpp" > boost/operators.hpp< / a > < / h1 >
< p > Header < a href = "file:///c:/boost/site /boost/operators.hpp" > boost/operators.hpp< / a >
< p > Header < a href = "http://www.boost.org /boost/operators.hpp" > boost/operators.hpp< / a >
supplies (in namespace boost) several sets of templates:< / p >
supplies (in namespace boost) several sets of templates:< / p >
< ul >
< ul >
< li > < a href = "#Arithmetic" > Arithmetic operators< / a > .
< li > < a href = "#Arithmetic" > Arithmetic operators< / a > .
@@ -43,10 +43,10 @@ additional operators, such as operator>, <=, >=, and +. <a href="
forms< / a > of the templates are also provided to allow interaction with other
forms< / a > of the templates are also provided to allow interaction with other
types.< / p >
types.< / p >
< p > < a href = "http://www.boost.org/people/dave_abrahams.htm" > Dave Abrahams< / a >
< p > < a href = "http://www.boost.org/people/dave_abrahams.htm" > Dave Abrahams< / a >
started the library and contributed the arithmetic operators in < a href = "file:///c:/boost/site /boost/operators.hpp" > boost/operators.hpp< / a > .< br >
started the library and contributed the arithmetic operators in < a href = "http://www.boost.org /boost/operators.hpp" > boost/operators.hpp< / a > .< br >
< a href = "http://www.boost.org/people/jeremy_siek.htm" > Jeremy Siek< / a >
< a href = "http://www.boost.org/people/jeremy_siek.htm" > Jeremy Siek< / a >
contributed the < a href = "#deref and helpers" > dereference operators and iterator
contributed the < a href = "#deref and helpers" > dereference operators and iterator
helpers< / a > in < a href = "file:///c:/boost/site /boost/operators.hpp" > boost/operators.hpp< / a > .< br >
helpers< / a > in < a href = "http://www.boost.org /boost/operators.hpp" > boost/operators.hpp< / a > .< br >
< a href = "http://www.boost.org/people/aleksey_gurtovoy.htm" > Aleksey Gurtovoy< / a >
< a href = "http://www.boost.org/people/aleksey_gurtovoy.htm" > Aleksey Gurtovoy< / a >
contributed the code to support < a href = "#chaining" > base class chaining< / a >
contributed the code to support < a href = "#chaining" > base class chaining< / a >
while remaining backward-compatible with old versions of the library.< br >
while remaining backward-compatible with old versions of the library.< br >
@@ -60,7 +60,7 @@ x >= y,</code> and <code>x <= y</code>. Moreover, unless your class has
really surprising behavior, some of these related operators can be defined in
really surprising behavior, some of these related operators can be defined in
terms of others (e.g. < code > x > = y < b > < => < / b > !(x < y)< / code > ).
terms of others (e.g. < code > x > = y < b > < => < / b > !(x < y)< / code > ).
Replicating this boilerplate for multiple classes is both tedious and
Replicating this boilerplate for multiple classes is both tedious and
error-prone. The < a href = "file:///c:/boost/site /boost/operators.hpp" > boost/operators.hpp< / a >
error-prone. The < a href = "http://www.boost.org /boost/operators.hpp" > boost/operators.hpp< / a >
templates help by generating operators for you at namespace scope based on other
templates help by generating operators for you at namespace scope based on other
operators you've defined in your class.< / p >
operators you've defined in your class.< / p >
< a name = "two_arg" >
< a name = "two_arg" >
@@ -585,7 +585,7 @@ complicated than the old one, we think it's worth it to make the library more
useful in real world. Alexy Gurtovoy contributed the code which supports the new
useful in real world. Alexy Gurtovoy contributed the code which supports the new
usage idiom while allowing the library remain backward-compatible.< / p >
usage idiom while allowing the library remain backward-compatible.< / p >
< hr >
< hr >
< p > Revised <!-- webbot bot="Timestamp" s - type="EDITED" s - format="%d %b %Y" startspan --> 03 Aug 2000<!-- webbot bot="Timestamp" endspan i - checksum="147 50" -->
< p > Revised <!-- webbot bot="Timestamp" s - type="EDITED" s - format="%d %b %Y" startspan --> 28 Jun 2000<!-- webbot bot="Timestamp" endspan i - checksum="15058 " -->
< / p >
< / p >
< p > <EFBFBD> Copyright David Abrahams and Beman Dawes 1999-2000. Permission to copy,
< p > <EFBFBD> Copyright David Abrahams and Beman Dawes 1999-2000. Permission to copy,
use, modify, sell and distribute this document is granted provided this
use, modify, sell and distribute this document is granted provided this