Namespaces
Variants
Actions

Talk:cpp/container/unordered map/unordered map

From cppreference.com

The default constructor is written as

unordered_map() : unordered_map( size_type(/*implementation-defined*/) {}

One right parenthesis is missing.

Updated, thanks --Cubbi (talk) 15:45, 4 April 2016 (PDT)


I don't think this says what happens on construction from a range if the range contains multiple entries with the same key. (Presumably it's the same semantics as creating an empty container then inserting from the range, i.e. the first one encountered is the winner.) --Pmg23 (talk) 03:39, 24 March 2017 (PDT)

The standard doesn't say that either. It's part of the defect LWG2844. Perhaps we should note that (notes added) --Cubbi (talk) 06:38, 24 March 2017 (PDT)