Difference between revisions of "cpp/named req/ContiguousContainer"
From cppreference.com
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 {{ | + | 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 {{ | + | * The type {{tt|X}} satisfies {{named req|Container}} |
− | * The type {{tt|X}} supports {{ | + | * The type {{tt|X}} supports {{named req|RandomAccessIterator}}s |
− | * The member types {{c|X::iterator}} and {{c|X::const_iterator}} are {{ | + | * 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
A ContiguousContainer
is a Container that stores objects in contiguous memory locations.
Requirements
The type X
satisfies ContiguousContainer
if
- The type
X
satisfies Container - The type
X
supports LegacyRandomAccessIterators - The member types X::iterator and X::const_iterator are LegacyContiguousIterators
ContiguousContainers in the standard library
stores and manipulates sequences of characters (class template) | |
(C++11) |
fixed-sized inplace contiguous array (class template) |
dynamic contiguous array (class template) |