std::ranges::common_view<V>::common_view
From cppreference.com
< cpp | ranges | common view
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Ranges library
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++26)(C++26)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
std::ranges::common_view
common_view::common_view
(C++26)
common_view() = default;
(1)
(since C++20)
constexpr explicit common_view( V r );
(2)
(since C++20)
Constructs a common_view
.
1) Default constructor. Value-initializes the underlying view. After construction,
base()
returns a copy of V().2) Initializes the underlying view with std::move(r).
[edit] Parameters
r
-
underlying view to be adapted into a common-range
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] 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 3405 | C++20 | the redundant converting constructor might cause constraint recursion | removed |