Boost logo

Boost :

From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2002-08-23 13:58:55


Andrew Koenig <ark_at_[hidden]> writes:

| iter[integer]
| iter + integer (and integer + iter)
| iter - iter
|
| Either of the first two operations can substitute for the other,
| so the real question is whether the second is much more common than
| the first. I suspect it isn't.

I just had a glance at the sorting algorithm implemented in SGI STL
(and now GCC STL) and found that the second operation is more used
that the first. I, however, agree that std::sort() isn't necessarily
representative of typical uses.

-- Gaby


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk