Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::experimental::ranges::View

The concept View<T> specifies the semiregular range T has constant-time copy, move, and assignment operations.

NotebookLM
Defined in header <experimental/ranges/range>
template< class T >
concept bool View = Range<T> && Semiregular<T> && /* view-predicate<T> */;
(ranges TS)
template< class T >
struct enable_view {};
(ranges TS)
struct view_base {};
(ranges TS)

The concept View<T> specifies the semiregular range T has constant-time copy, move, and assignment operations.

The /* view-predicate<T> */ portion of the concept is determined as follows:

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.