Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | named req
(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:
See [http://en.cppreference.com/w/cpp/container/array '''std::array'''], that's the same.
+
{{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

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]