Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      C++ named requirements:LayoutMappingPolicy(since C++23)

      From cppreference.com
      <cpp‎ |named req
       
       
      C++ named requirements
       

      LayoutMappingPolicy is a type used to specify layout policy ofstd::mdspan. It provides a member alias template whose specialization is aLayoutMapping type.

      Contents

      [edit]Requirements

      A typeMP satisfiesLayoutMappingPolicy if the type requirements shown below are valid:

      [edit]Legend

      Type Definition
      MP a layout mapping policy class
      M a layout mapping class
      E a specialization ofstd::extents

      [edit]Type requirements

      • MP::mapping<E> is valid and denotes a typeM that satisfiesLayoutMapping.
      • M::layout_type is valid and denotes a typeMP.
      • M::extents_type is valid and denotes a typeE.

      [edit]Standard library

      The following standard library types satisfyLayoutMappingPolicy requirements:

      column-major multidimensional array layout mapping policy; leftmost extent has stride1
      (class)[edit]
      row-major multidimensional array layout mapping policy; rightmost extent has stride1
      (class)[edit]
      a layout mapping policy with user-defined strides
      (class)[edit]
      column-major layout mapping policy with padding stride that can be greater than or equal to the leftmost extent
      (class template)[edit]
      row-major layout mapping policy with padding stride that can be greater than or equal to the rightmost extent
      (class template)[edit]
      Defined in namespacestd::linalg
      std::mdspan layout mapping policy that swaps the rightmost two indices, extents, and strides of any unique layout mapping policy
      (class template)[edit]
      std::mdspan layout mapping policy that represents a square matrix that stores only the entries in one triangle, in a packed contiguous format
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/named_req/LayoutMappingPolicy&oldid=178867"

      [8]ページ先頭

      ©2009-2026 Movatter.jp