s you've defined in your class.</p>

    <p>If, for example, you declare a class like this:</p>

    <blockquote>
<pre>
class MyInt
    : boost::operators&lt;MyInt&gt;
{
    bool operator&lt;(const MyInt&amp; x) const;
    bool operator==(const MyInt&amp; x) const;
    MyInt&amp; operator+=(const MyInt&amp; x);
    MyInt&amp; operator-=(const MyInt&amp; x);
    MyInt&amp; operator*=(const MyInt&amp; x);
    MyInt&amp; operator/=(const MyInt&amp; x);
    MyInt&amp; operator%=(const MyInt&amp; x);
    MyInt&a