Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::static_extent

      From cppreference.com
      <cpp‎ |container‎ |mdspan
       
       
       
       
      staticconstexprstd::size_t static_extent( rank_type r)noexcept;
      (since C++23)

      Statically determines the extent of amdspan at the rank indexr. If the rank indexr corresponds to a dynamic extent, returnsstd::dynamic_extent. Equivalent toreturn Extents::static_extent(r);.

      Contents

      [edit]Parameters

      r - The rank index to get the static extent size of

      [edit]Return value

      The static extent size, orstd::dynamic_extent.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      returns static extent size of anextents at a certain rank index
      (public static member function ofstd::extents<IndexType,Extents...>)[edit]
      returns the extent of amdspan at a given rank index
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/mdspan/static_extent&oldid=178336"

      [8]ページ先頭

      ©2009-2026 Movatter.jp