#include <map> #include <iostream> int main(int argc, const char *argv[]) { std::multimap<int, int> mmap; mmap.insert({1,1}); mmap.insert({1,2}); mmap.insert({2,1}); auto i = mmap.equal_range(1); while (i.first != i.second) { std::cout << i.first->first << std::endl; i.first++; } return 0; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15129 | zachwhaley | Add practice directory |