Created
May 13, 2019 21:08
-
-
Save trya/50944b6c4d11d1ae29734f3418d6199b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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