Development reference: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
! c++11 for loop using lambda | ! c++11 for loop using lambda | ||
|- | |- | ||
| This for loop is clean and elegant and a perfect way to check if your compiler is ready for c++11 | | This C++11 for loop is clean and elegant and a perfect way to check if your compiler is ready for c++11: | ||
vector<int> v; | |||
for_each( v.begin(), v.end(), [] (int val) | |||
{ | |||
cout << val; | |||
} ); | |||
This is using a lambda function, we should switch from iterators and functors to those - but not quite yet, since we're writing cross-platform code. Do not touch this tho until we can be sure that all platforms provide compatible C++11 handling. Initial results of for_each support: | |||
* max os x snow leopard does not understand the lambda function | |||
|} | |} | ||
Revision as of 01:08, 2 October 2012
Expandc++11 for loop using lambda |
---|
Expandc++ stl in-memory storage of "major" objects |
---|
Expandc++ stl reverse iterator skeleton |
---|
c++ stl reading a binary file |
---|
Expandc/c++ gdb debugging |
---|
Expandphp debugging |
---|
Expandjava eclipse project layout format |
---|
Expandmediawiki collapsible skeleton |
---|
Expandmediawiki collapsible example |
---|
Web Services |
---|
Firefox Addon development |
---|