Standard C++ algorithm and functional headers
Tuesday, November 25th, 2008I’ve found joy in the standard C++ algorithm and functional headers. I finally found a nice, neat way to iterate through a container calling a specific function on all elements of the container! I used to do this sort of thing everywhere in my code: for (std::list ::iterator i = roads.begin(); i != roads.end(); i++) […]