Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::common_view<V>::common_view

      From cppreference.com
      <cpp‎ |ranges‎ |common view
       
       
      Ranges library
      Range adaptors
       
       
      common_view()=default;
      (1)(since C++20)
      constexprexplicit common_view( V r);
      (2)(since C++20)

      Constructs acommon_view.

      1) Default constructor.Value-initializes the underlying view. After construction,base() returns a copy ofV().
      2) Initializes the underlying view withstd::move(r).

      [edit]Parameters

      r - underlying view to be adapted into a common-range

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]Defect reports

      The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

      DRApplied toBehavior as publishedCorrect behavior
      LWG 3405C++20the redundant converting constructor might cause constraint recursionremoved
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/common_view/common_view&oldid=132644"

      [8]ページ先頭

      ©2009-2026 Movatter.jp