Difference between revisions of "cpp/named req/ContiguousContainer"
From cppreference.com
(Created page with "See [http://en.cppreference.com/w/cpp/container/array '''std::array'''], that's the same.") |
(actual content from [container.requirements.general]p13) |
||
Line 1: | Line 1: | ||
− | + | {{cpp/concept/title|ContiguousContainer}} | |
+ | {{cpp/concept/navbar}} | ||
+ | |||
+ | A {{ttb|ContiguousContainer}} is a {{concept|Container}} that stores objects in contiguous memory locations. | ||
+ | |||
+ | ===Requirements=== | ||
+ | |||
+ | The type {{tt|X}} satisfies {{tt|ContiguousContainer}} if | ||
+ | |||
+ | * The type {{tt|X}} satisfies {{concept|Container}} | ||
+ | * The type {{tt|X}} supports {{concept|RandomAccessIterator}}s | ||
+ | * The member types {{c|X::iterator}} and {{c|X::const_iterator}} are {{concept|ContiguousIterator}}s | ||
+ | |||
+ | ===ContiguousContainers in the standard library=== | ||
+ | {{dsc begin}} | ||
+ | {{dsc inc | cpp/string/dsc basic_string}} | ||
+ | {{dsc inc | cpp/container/dsc array}} | ||
+ | {{dsc inc | cpp/container/dsc vector}} | ||
+ | {{dsc end}} |
Revision as of 04:46, 16 May 2017
Template:cpp/concept/title Template:cpp/concept/navbar
A ContiguousContainer
is a Template:concept that stores objects in contiguous memory locations.
Requirements
The type X
satisfies ContiguousContainer
if
- The type
X
satisfies Template:concept - The type
X
supports Template:concepts - The member types X::iterator and X::const_iterator are Template:concepts
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) |