Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::enumerate_view<V>::enumerate_view

      From cppreference.com
      <cpp‎ |ranges‎ |enumerate view
       
       
      Ranges library
      Range adaptors
       
      std::ranges::enumerate_view
      Member functions
      enumerate_view::enumerate_view
      Deduction guides
      Nested classes
      Iterator
      Sentinel
       
      enumerate_view() requiresstd::default_initializable<V>=default;
      (1)(since C++23)
      constexprexplicit enumerate_view( V base);
      (2)(since C++23)

      Constructs aenumerate_view.

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

      [edit]Parameters

      base - the underlying view

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/enumerate_view/enumerate_view&oldid=150636"

      [8]ページ先頭

      ©2009-2025 Movatter.jp