Question Details

No question body available.

Tags

c++ c++-concepts

Answers (1)

April 25, 2026 Score: 8 Rep: 49,797 Quality: Medium Completeness: 70%

I find no library that, being included, could tell my compiler what I mean by the word ContiguousContainer.

The standard does define the term "contiguous container" in container.reqmts:

A contiguous container is a container whose member types iterator and constiterator meet the Cpp17RandomAccessIterator requirements ([random.access.iterators]) and model contiguousiterator ([iterator.concept.contiguous]).


How would you do it?

One option is to use std::ranges::contiguousrange.