Difference between revisions of "Template:cpp/container/if map"
From cppreference.com
m (1 revision: import content) |
Andreas Krug (Talk | contribs) m (fmt) |
||
Line 1: | Line 1: | ||
− | {{#switch: {{{1|}}} | + | {{#switch:{{{1|}}} |
− | + | |map|multimap|unordered_map|unordered_multimap={{{2|}}} | |
− | + | |{{{3|}}} | |
}}<noinclude> | }}<noinclude> | ||
− | {{documentation | Template:cpp/container/if assoc/doc}} | + | {{documentation|Template:cpp/container/if assoc/doc}} |
</noinclude> | </noinclude> |
Revision as of 04:07, 20 November 2023
This is one of the group of the templates used to categorize containers.
The general form is:
{{cpp/container/TERM|container|if-true|if-false (optional)}}
:
- results in if-true if container is one in given container/adaptor group.
- results in if-false (if present), otherwise.
TERM | Containers/adaptors in the group |
---|---|
if seq |
|
if assoc |
|
if ord |
|
if unord |
|
if uniq |
|
if eq |
|
if set |
|
if map |
|
if ad |
|
if flat |
|
if c++98 |
|
if c++11 |
|
Examples
{{cpp/container/if set|multiset|Yes|No}}
results in Yes.
{{cpp/container/if seq|multiset|Yes|No}}
results in No.
The above documentation is transcluded from Template:cpp/container/if assoc/doc. (edit | history) Subpages of this template. |