Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

      From cppreference.com
      <cpp‎ |container‎ |mdspan
       
       
       
       
      constexpr size_type size()constnoexcept;
      (since C++23)

      Returns the number of elements inmdspan.

      Equivalent toextents().fwd-prod-of-extents(rank()).

      The size of the multidimensional index spaceextents() must be representable as a value of typesize_type. Otherwise, the behavior is undefined.

      [edit]Return value

      The number of elements.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      This section is incomplete
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/mdspan/size&oldid=179963"

      [8]ページ先頭

      ©2009-2025 Movatter.jp