Fixed map iterator
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#include <iacore/file.hpp>
|
||||
|
||||
#include <iacore/vector.hpp>
|
||||
#include <iacore/map.hpp>
|
||||
|
||||
using namespace ia;
|
||||
|
||||
@ -18,5 +19,16 @@ int main(int argc, char* argv[])
|
||||
|
||||
print(v1);
|
||||
|
||||
List<int> l1;
|
||||
|
||||
Map<String, int> m1;
|
||||
m1["sdd"] = 2;
|
||||
m1["bx"] = 5;
|
||||
|
||||
for(const auto& v: m1)
|
||||
{
|
||||
printf("%s, %i\n", v->Key.c_str(), v->Value);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user