mirror of
https://github.com/boostorg/utility.git
synced 2025-05-08 18:34:02 +00:00
Adjusted code formatting.
This commit is contained in:
parent
51104850f6
commit
f7c17df050
@ -40,7 +40,7 @@ If, for example, you declare a class like this:
|
|||||||
|
|
||||||
```
|
```
|
||||||
class MyInt
|
class MyInt
|
||||||
: boost::__operators__<MyInt>
|
: boost::__operators__<MyInt>
|
||||||
{
|
{
|
||||||
bool operator<(const MyInt& x) const;
|
bool operator<(const MyInt& x) const;
|
||||||
bool operator==(const MyInt& x) const;
|
bool operator==(const MyInt& x) const;
|
||||||
@ -104,10 +104,10 @@ template.
|
|||||||
```
|
```
|
||||||
template <class T>
|
template <class T>
|
||||||
class point // note: private inheritance is OK here!
|
class point // note: private inheritance is OK here!
|
||||||
: boost::addable< point<T> // point + point
|
: boost::addable< point<T> // point + point
|
||||||
, boost::subtractable< point<T> // point - point
|
, boost::subtractable< point<T> // point - point
|
||||||
, boost::dividable2< point<T>, T // point / T
|
, boost::dividable2< point<T>, T // point / T
|
||||||
, boost::multipliable2< point<T>, T // point * T, T * point
|
, boost::multipliable2< point<T>, T // point * T, T * point
|
||||||
> > > >
|
> > > >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user