Jump to content

Talk:Unordered associative containers (C++)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Renaming this article to follow a consistent convention

[edit]

Hi, I am currently considering renaming this article to conform to a common convention for C++ Standard Library components. The full discussion can be found here. decltype 09:49, 6 March 2009 (UTC)[reply]

I would advise moving to Unordered containers (C++), since in this article we also talk about unordered_set etc, which should redirect here. hash_map and hash_map (C++ class) (and other hash_xxx) should all be redirecting here. 114.146.107.27 (talk) 06:43, 22 June 2009 (UTC)[reply]

MSVC?

[edit]

The reference on the statement about the header from MSVC is a page specific to Visual Studio 2008. However, my installed copy has no such header present. Is that only present in certain editions, or an extra download? Or does the class documentation cover things in the standards that are not shipped, making the citation (that it is with MSVC) incorrect? Długosz (talk) 22:54, 20 July 2009 (UTC)[reply]


Better Examples

[edit]

It would be nice if this gave an example of looking to see whether or not a key was present in the map. E.g, in python, one would do "hash_map.Get(key) ; if key is None: ...". 216.239.45.130 (talk) 01:54, 12 October 2011 (UTC)[reply]

Reorganization

[edit]

There's an ongoing discussion about an reorganization of the articles about the C++ containers. This page is one of the subjects of that discussion. Please express your opinion. 1exec1 (talk) 20:15, 2 December 2011 (UTC)[reply]

[edit]

The box on the side has a link to "Container adaptors" but there is no such value on Wikipedia. — Preceding unsigned comment added by 84.110.192.162 (talk) 01:41, 13 December 2011 (UTC)[reply]

Feel free to create one. Previously we had links to queue (C++) and stack (C++) which also do not exist. 1exec1 (talk) 12:36, 13 December 2011 (UTC)[reply]

std::size_t

[edit]

In the examples std:: is used for all standard types except size_t. For consistency I think we should write std::size_t. — Preceding unsigned comment added by 95.80.14.249 (talk) 19:28, 17 March 2012 (UTC)[reply]

But size_t isn't really a C++-specific type. It's part of C. -- X7q (talk) 21:06, 17 March 2012 (UTC)[reply]
C++ doesn't include C as is: C specific parts, including size_t, are in the std:: namespace. Even if using size_t works, it's only by a chance. E.g. some compilers, including GCC, pollute the global namespace with the contents of unistd.h, but this bug will be fixed in the future. We should really use std::size_t. 1exec1 (talk) 15:28, 18 March 2012 (UTC)[reply]

Shouldn't this article about C++ Unordered associative containers explain or link to what each is, what the differences are?

[edit]

What's the diff between a multiset and a set, a multimap and a map, a multiset and a multimap?

That's what I came here to find out. — Preceding unsigned comment added by 24.143.68.7 (talk) 20:59, 22 May 2016 (UTC)[reply]

Too pore examples.

[edit]

Even the syntax of a search does not present. 85.65.224.220 (talk) 22:58, 1 July 2022 (UTC)[reply]