-1

I have to keep count of the occurrences of various sub matrices that occur in a matrix. Can I use a map, keeping the Key as a 2D matrix and the Value as the count? If I can, then what will the syntax be?

Dhruv Mullick
  • 551
  • 9
  • 25

1 Answers1

3

This has been addressed more generally in the following post:

What requirements must std::map key classes meet to be valid keys?

Community
  • 1
  • 1
user3814483
  • 292
  • 1
  • 2
  • 13