Talk:Unordered associative containers (C++): Difference between revisions

Content deleted Content added
Implementing WP:PIQA (Task 26)
 
(17 intermediate revisions by 11 users not shown)
Line 1:
{{Talk header}}
{{Wikipedia:WikiProject C++/Article}}
{{WikiProject banner shell|class=Start|
{{WikiProject C/C++|importance=Mid|c++=yes}}
}}
 
== Renaming this article to follow a consistent convention ==
Line 5 ⟶ 8:
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 [[Wikipedia_talk:WikiProject_C++|here]]. <tt>[[User:Decltype|decltype]]</tt> 09:49, 6 March 2009 (UTC)
: 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. [[Special:Contributions/114.146.107.27|114.146.107.27]] ([[User talk:114.146.107.27|talk]]) 06:43, 22 June 2009 (UTC)
 
== MSVC? ==
 
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?
[[User:Długosz|Długosz]] ([[User talk:Długosz|talk]]) 22:54, 20 July 2009 (UTC)
 
 
 
== Better Examples ==
 
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: ...".
[[Special:Contributions/216.239.45.130|216.239.45.130]] ([[User talk:216.239.45.130|talk]]) 01:54, 12 October 2011 (UTC)
 
== Reorganization ==
 
There's an ongoing [[Talk:C++ Standard Library#reorg | 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. [[User:1exec1|1exec1]] ([[User talk:1exec1|talk]]) 20:15, 2 December 2011 (UTC)
 
== Bad link ==
 
The box on the side has a link to "Container adaptors" but there is no such value on Wikipedia. <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/84.110.192.162|84.110.192.162]] ([[User talk:84.110.192.162|talk]]) 01:41, 13 December 2011 (UTC)</span><!-- Template:Unsigned IP --> <!--Autosigned by SineBot-->
: Feel free to create one. Previously we had links to [[queue (C++)]] and [[stack (C++)]] which also do not exist. [[User:1exec1|1exec1]] ([[User talk:1exec1|talk]]) 12:36, 13 December 2011 (UTC)
 
== std::size_t ==
 
In the examples std:: is used for all standard types except size_t. For consistency I think we should write std::size_t. <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/95.80.14.249|95.80.14.249]] ([[User talk:95.80.14.249|talk]]) 19:28, 17 March 2012 (UTC)</span><!-- Template:Unsigned IP --> <!--Autosigned by SineBot-->
: But size_t isn't really a C++-specific type. It's part of C. -- [[User:X7q|X7q]] ([[User talk:X7q|talk]]) 21:06, 17 March 2012 (UTC)
:: 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. [[User:1exec1|1exec1]] ([[User talk:1exec1|talk]]) 15:28, 18 March 2012 (UTC)
 
== Shouldn't this article about C++ Unordered associative containers explain or link to what each is, what the differences are? ==
 
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. <small class="autosigned">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/24.143.68.7|24.143.68.7]] ([[User talk:24.143.68.7|talk]]) 20:59, 22 May 2016 (UTC)</small><!-- Template:Unsigned IP --> <!--Autosigned by SineBot-->
 
== Too pore examples. ==
 
Even the syntax of a search does not present. [[Special:Contributions/85.65.224.220|85.65.224.220]] ([[User talk:85.65.224.220|talk]]) 22:58, 1 July 2022 (UTC)