CppCommon  1.0.4.1
C++ Common Library
containers_flatmap.cpp

Flat map container example

#include <iostream>
#include <string>
int main(int argc, char** argv)
{
flatmap["item6"] = 6;
flatmap["item3"] = 3;
flatmap["item7"] = 7;
flatmap["item2"] = 2;
flatmap["item8"] = 8;
flatmap["item1"] = 1;
flatmap["item4"] = 4;
flatmap["item9"] = 9;
flatmap["item5"] = 5;
std::cout << "flatmap:" << std::endl;
for (const auto& item : flatmap)
std::cout << item.first << " => " << item.second << std::endl;
return 0;
}
Flat map container.
Definition: flatmap.h:33
Flat map container definition.