The keys are binary garbage and I only defined them as chars because I need a 1-byte array.
They may contain null bytes.
Now problem is, when I have a two keys: ab(0)a and ab(0)b ((0) being a null byte), the map treats them as strings, considers them equal and I don’t get two unique map entries.
What’s the best way to solve this?
Why not use
std::stringas key:Second argument should denote the size of the c-string. All of the above use this constructor:
description of which is this: