Skip to content

Instantly share code, notes, and snippets.

@sharth
Created November 26, 2014 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharth/7e3074a6f14eee3e5597 to your computer and use it in GitHub Desktop.
Save sharth/7e3074a6f14eee3e5597 to your computer and use it in GitHub Desktop.
#include <map>
#include <boost/filesystem.hpp>
int main() {
std::map<float, std::vector<boost::filesystem::path>> labeledImages;
labeledImages[3] = { boost::filesystem::path("/"), };
labeledImages[7] = { boost::filesystem::path("/"), boost::filesystem::path("/tmp"), };
for (auto& labeledPathsPair : labeledImages) {
std::vector< boost::filesystem::path > tmpVec = labeledPathsPair.second; // here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment