TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: Mike Luther
from: Bo Simonsen
date: 2009-04-28 22:04:12
subject: Ping?

ML> BS> Just testing how far this echo comes..

Nice I went through... 

Just thought of, are you guys also excited to see the final version of the
C++0x standard?

So far, I've experimented some, especially with the auto-keyword.
(It's in GCC 4.4)

Instead of writing:

std::set cont;
cont.insert(5);
cont.insert(7);

for(typename std::set::iterator it = cont.begin(); 
    it != cont.end();
    ++it) {
    // do something with *it
}
 
We can simply write:

for(auto it=cont.begin(); it != cont.end(); ++it) {

}

Damn nice.. :) 

Bo

--- DayDream/Linux 2.15a
* Origin: The Night Express, Korsoer, geekworld.no-ip.org (2:236/100)
SEEN-BY: 10/1 3 11/331 34/999 103/105 120/228 128/2 140/1 222/2 226/0 236/150
SEEN-BY: 249/303 250/306 261/20 38 100 1404 1406 1418 266/1413 280/1027
SEEN-BY: 320/119 396/45 633/104 260 267 690/682 734 712/848 800/432 801/161
SEEN-BY: 801/189 2222/700 2320/100 105 200 2905/0
@PATH: 236/100 237/53 236/150 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.