|
|
|
|
|
by jcd748
4446 days ago
|
|
You probably don't need std::for_each anymore. With C++11, you can do the following: for (const auto& element : collection)
{
} What's wrong with <algorithm>? I use it all the time for sort, swap, and random_shuffle comes up more frequently than I expect. |
|
Unfortunately, the gamedev industry will probably be stuck with pre-C++11 for another decade.