Skip to content

Instantly share code, notes, and snippets.

@trya
Created May 13, 2019 21:08
Show Gist options
  • Save trya/50944b6c4d11d1ae29734f3418d6199b to your computer and use it in GitHub Desktop.
Save trya/50944b6c4d11d1ae29734f3418d6199b to your computer and use it in GitHub Desktop.
#include <iostream>
#include <map>
struct s {
float red = 1.0/*F*/;
};
static const std::map<int, s> m {
{ 10, {} },
{ 12, {} },
{ 14, {} },
};
int main(int argc, char **argv)
{
for (auto &pair : m) {
std::cerr << pair.first << std::endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment