Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/named req/ContiguousContainer"

From cppreference.com
< cpp‎ | named req
m (Added Spanish link)
(Requirements: {{named req|ContiguousIterator}} => {{lconcept|contiguous_iterator}})
Line 10: Line 10:
 
* The type {{tt|X}} satisfies {{named req|Container}}
 
* The type {{tt|X}} satisfies {{named req|Container}}
 
* The type {{tt|X}} supports {{named req|RandomAccessIterator}}s
 
* The type {{tt|X}} supports {{named req|RandomAccessIterator}}s
* The member types {{c|X::iterator}} and {{c|X::const_iterator}} are {{named req|ContiguousIterator}}s
+
* The member types {{c|X::iterator}} and {{c|X::const_iterator}} are {{rev inl|until=c++20|{{named req|ContiguousIterator}}s}}{{rev inl|since=c++20|{{lconcept|contiguous_iterator}}s}}
  
 
===Contiguous containers in the standard library===
 
===Contiguous containers in the standard library===

Revision as of 17:13, 19 May 2021

 
 
C++ named requirements
 

A ContiguousContainer is a Container that stores objects in contiguous memory locations.

Requirements

The type X satisfies ContiguousContainer if

Contiguous containers in the standard library

stores and manipulates sequences of characters
(class template) [edit]
(C++11)
fixed-sized inplace contiguous array
(class template) [edit]
dynamic contiguous array
(class template) [edit]