Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | named req
m (T. Canens moved page cpp/concept/ContiguousContainer to cpp/named req/ContiguousContainer without leaving a redirect: Text replace - "cpp/concept" to "cpp/named req")
m (Text replace - "{{concept" to "{{named req")
Line 2: Line 2:
 
{{cpp/named req/navbar}}
 
{{cpp/named req/navbar}}
  
A {{ttb|ContiguousContainer}} is a {{concept|Container}} that stores objects in contiguous memory locations.
+
A {{ttb|ContiguousContainer}} is a {{named req|Container}} that stores objects in contiguous memory locations.
  
 
===Requirements===
 
===Requirements===
Line 8: Line 8:
 
The type {{tt|X}} satisfies {{tt|ContiguousContainer}} if
 
The type {{tt|X}} satisfies {{tt|ContiguousContainer}} if
  
* The type {{tt|X}} satisfies {{concept|Container}}
+
* The type {{tt|X}} satisfies {{named req|Container}}
* The type {{tt|X}} supports {{concept|RandomAccessIterator}}s
+
* The type {{tt|X}} supports {{named req|RandomAccessIterator}}s
* The member types {{c|X::iterator}} and {{c|X::const_iterator}} are {{concept|ContiguousIterator}}s
+
* The member types {{c|X::iterator}} and {{c|X::const_iterator}} are {{named req|ContiguousIterator}}s
  
 
===ContiguousContainers in the standard library===
 
===ContiguousContainers in the standard library===

Revision as of 14:12, 15 June 2018

 
 
C++ named requirements
 

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

Requirements

The type X satisfies ContiguousContainer if

ContiguousContainers 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]