On this page
std::ranges::viewable_range
Defined in header <ranges> |
||
|---|---|---|
|
(since C++20) |
The viewable_range concept is a refinement of range that describes a range that can be converted into a view through views::all.
The constant /*is-initializer-list*/<T> is true if and only if std::remove_cvref_t<T> is a specialization of std::initializer_list.
Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3481 | C++20 | viewable_range accepted an lvalue of a move-only view |
rejects |
| P2415R2 | C++20 | viewable_range only accepted non-view rvalues that are borrowed_range |
accepts more types |
See also
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/viewable_range