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

Content deleted Content added
Implementing WP:PIQA (Task 26)
 
(6 intermediate revisions by 5 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 32 ⟶ 35:
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)