Boost logo

Boost :

From: Daniel Spangenberg (dsp_at_[hidden])
Date: 2003-10-30 07:24:36

Rob Stewart schrieb:

> Because s[0] isn't the 0th element; it's the first. As I said,
> we use ordinals to refer to things like this. Addressing an
> element uses an index, and indexes start at zero. "nth"
> explicitly refers to ordinals, and there's no 0th; you start with
> 1st, so find_nth() should reasonably start numbering from one.
> > You can think of find_nth as indexing into a view onto the matching
> > substrings of s if you want.

You you are right, but 0th is consistent to the naming of the std algorithm


Boost list run by bdawes at, gregod at, cpdaniel at, john at