[SAoC] Move semantics and STL containers

Gregor Mückl gregormueckl at gmx.de
Thu Dec 19 20:09:36 UTC 2019


On Thursday, 19 December 2019 at 13:49:36 UTC, Ola Fosheim 
Grøstad wrote:
> std::pair is just a std::tuple, so does this mean std::tuple is 
> usable?

Careful: while std::pair is semantically a 2-tuple, it is 
actually a completely separate type and not a specialization.

My guess is that this can't be corrected now because std::pair is 
older than std::tuple and was used in std::map and related 
associative containers.


More information about the Digitalmars-d mailing list