I\'m trying to create a map, where the key is an int, and the value is an array as follows:
int
int red[3] = {1,0,0}; int green[3] = {0,1,0}; int b
Another alternative is to put the arrays in a wrapping struct:
struct Wrapper { int value[3]; }; // ... Wrapper red = {{1,0,0}}; std::map colours; colours.insert(std::pair(1, red));