define a container such that:
-each element in it is an std::pair<T1,T2> where T1 might be same as T2 or might differ.
- each item in the pair acts as a key to its paired item such that you can
use4 either to retrive its partner.
- each key can only occur once.
nice suggestion @furryGuy ,std::map, std::set,std::multi*** ... are good and actually thw only ones providing associative props{key:value} but for now i'd love to put them aside and only return to them if i fail to develop an alternative that would provide the specs above.
can you think of another way that could be achieved?
NB: this "std::pair<T1,T2>" is not strictly required anything that can pair values of similar or
different types would be desirable.
being able to provide the second functionality would be a life saver.