James Kanze
10/17/2008 8:18:00 AM
On Oct 16, 5:33 pm, newbar...@gmail.com wrote:
> I'm looking through the C++ standard and see statements like this:
> yields: the smallest q in
> [p,p+n) such that
> X::eq(*q,c) is true, zero
> otherwise.
> I'm not from a scientific/math background but would like to
> read more about what this "[p,p+n)" syntax is called and how
> it's defined so does anyone have a link to a web page about
> this please?
Victor and Juha have already given the details, but it's worth
mentionning that this is called a half open interval---an
interval which includes its end points is closed, one which
doesn't is open. Also, the notation varies: "[a,b)" (or
"[a...b)") is almost universal in the anglo-saxon world, but in
France, I've often seen "[a;b[" or "[a...b[", with the [] being
used backwards to indicate openness. (Note too the use of ';'
instead of ','. This is usual in much of the world, where the
decimal character is a comma, and not a point.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34