Files
IACore/Src/IACoreTest/imp/cpp/Main.cpp
Isuru Samarathunga ed70c2b310 Fixed map iterator
2025-07-19 12:10:06 +05:30

34 lines
535 B
C++

#include <iacore/log.hpp>
#include <iacore/file.hpp>
#include <iacore/vector.hpp>
#include <iacore/map.hpp>
using namespace ia;
template<typename _value_type>
VOID print(IN CONST Span<_value_type>& s)
{
for(const auto& v: s)
Logger::Info(v);
}
int main(int argc, char* argv[])
{
Vector<int> v1{10, 20, 32};
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;
}