A ContiguousContainer is a Container that stores objects in contiguous memory locations.
Requirements
The type X satisfies ContiguousContainer if
- The type
Xsatisfies Container - The type
Xsupports LegacyRandomAccessIterators - The member types
X::iteratorandX::const_iteratorare LegacyContiguousIterators(until C++20)contiguous_iterators(since C++20)
Standard library
The following standard library string types and containers satisfy the ContiguousContainer requirements:
| stores and manipulates sequences of characters (class template) | |
| dynamic contiguous array (class template) | |
| (C++11) |
fixed-sized inplace contiguous array (class template) |
| (C++26) |
dynamically-resizable, fixed capacity, inplace contiguous array (class template) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.