Boost logo

Boost :

From: Ed Brey (brey_at_[hidden])
Date: 2000-03-07 09:04:12


----- Original Message -----
From: "Dave Steffen" <steffend_at_[hidden]>
> > cout << "First line\nSecond line";
> > or one of its more readable cousins like:
> > cout <<
> > "First line" "\n"
> > "Second line";
>
> ?? How does that work? Am I missing something?

String concatenation. e.g. "ABC" "DEF" is equivelent to "ABCDEF".

This way there is only one call to operator<<(ostream, char*). Also, the
string table is smaller since, at minimum, fewer null terminations are
needed.


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