Namespaces
Variants
Views
Actions

Difference between revisions of "Template:cpp/container/dsc iterator"

From cppreference.com
m (+inplace_vector.)
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#switch:{{{1|}}}
+
{{#switch:{{{1|array}}}
| array = {{dsc | {{tt|iterator}} | {{concept|RandomAccessIterator}}{{rev inl|since=c++20| and {{concept|ConstexprIterator}}}}{{rev inl|since=c++17|that is a {{concept|LiteralType}}<!--side effect of P0031-->}} }}
+
|array={{dsc|{{tt|iterator}}|{{rrev multi|noborder=false|rev1={{named req|RandomAccessIterator}} and {{named req|ContiguousIterator}} to {{tt|value_type}}|since2=c++17|rev2={{named req|RandomAccessIterator}} and {{named req|ContiguousIterator}} that is a {{named req|LiteralType}}<!--P0031--> to {{tt|value_type}}|since3=c++20|rev3={{named req|RandomAccessIterator}}, {{lconcept|contiguous_iterator}}, and {{named req|ConstexprIterator}} to {{tt|value_type}}}}}}
| vector
+
|vector
| deque
+
|basic_string={{dsc|{{tt|iterator}}|{{rrev multi|noborder=false|rev1={{named req|RandomAccessIterator}} and {{named req|ContiguousIterator}} to {{tt|value_type}}|since2=c++20|rev2={{named req|RandomAccessIterator}}, {{lconcept|contiguous_iterator}}, and {{named req|ConstexprIterator}} to {{tt|value_type}}}}}}
| basic_string = {{dsc | {{tt|iterator}} | {{concept|RandomAccessIterator}} }}
+
|vector_bool={{dsc|{{tt|iterator}}|{{rrev multi|noborder=false|rev1=implementation-defined|since2=c++20|rev2=implementation-defined {{named req|ConstexprIterator}}}}}}
| vector_bool = {{dsc | {{tt|iterator}} | implementation-defined }}
+
|deque={{dsc|{{tt|iterator}}|{{named req|RandomAccessIterator}} to {{tt|value_type}}}}
| set
+
|set
| multiset = {{dsc | {{tt|iterator}} | Constant {{concept|BidirectionalIterator}} }}
+
|multiset={{dsc|{{tt|iterator}}|Constant {{named req|BidirectionalIterator}} to {{tt|value_type}}}}
| list  
+
|list
| map
+
|map
| multimap = {{dsc | {{tt|iterator}} | {{concept|BidirectionalIterator}} }}
+
|multimap={{dsc|{{tt|iterator}}|{{named req|BidirectionalIterator}} to {{tt|value_type}}}}
| unordered_set
+
|unordered_set
| unordered_multiset = {{dsc | {{tt|iterator}} | Constant {{concept|ForwardIterator}} }}
+
|unordered_multiset={{dsc|{{tt|iterator}}|Constant {{named req|ForwardIterator}} to {{tt|value_type}}}}
| forward_list
+
|forward_list
| unordered_map
+
|unordered_map
| unordered_multimap = {{dsc | {{tt|iterator}} | {{concept|ForwardIterator}} }}
+
|unordered_multimap={{dsc|{{tt|iterator}}|{{named req|ForwardIterator}} to {{tt|value_type}}}}
 +
|inplace_vector
 +
|flat_set
 +
|flat_multiset={{dsc|{{tt|iterator}}|implementation-defined {{named req|RandomAccessIterator}} and {{lconcept|random_access_iterator}} to {{tt|value_type}}}}
 +
|flat_map
 +
|flat_multimap={{dsc|{{tt|iterator}}|implementation-defined {{named req|InputIterator}} and {{lconcept|random_access_iterator}} to {{tt|value_type}}}}
 
}}
 
}}

Latest revision as of 21:35, 5 August 2024

|- class="t-dsc" | iterator

|

LegacyRandomAccessIterator and LegacyContiguousIterator to value_type

(until C++17)

LegacyRandomAccessIterator and LegacyContiguousIterator that is a LiteralType to value_type

(since C++17)
(until C++20)

LegacyRandomAccessIterator, contiguous_iterator, and ConstexprIterator to value_type

(since C++20)

|-