std::ranges::common_view<V>:: common_view
From cppreference.net
<
cpp
|
ranges
|
common view
C++
Ranges library
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
std::ranges::common_view
| Member functions | ||||
|
common_view::common_view
|
||||
|
(C++26)
|
||||
| Deduction guides |
|
common_view
(
)
=
default
;
|
(1) | (C++20以降) |
|
constexpr
explicit
common_view
(
V r
)
;
|
(2) | (C++20以降) |
common_view
を構築します。
2)
基になるビューを
std
::
move
(
r
)
で初期化します。
パラメータ
| r | - | 共通範囲に適合させる基盤ビュー |
例
|
このセクションは不完全です
理由: 例がありません |
不具合報告
以下の動作変更の欠陥報告書は、以前に公開されたC++規格に対して遡及的に適用されました。
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3405 | C++20 | 冗長な変換コンストラクタが制約の再帰を引き起こす可能性がある | 削除 |