Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::simd_size

      From cppreference.com
      <cpp‎ |experimental‎ |simd
       
       
       
       
       
      Defined in header<experimental/simd>
      template<class T,class Abi= simd_abi::compatible<T>>
      struct simd_size;
      (parallelism TS v2)

      IfT is a vectorizable type andis_abi_tag_v<Abi> istrue, provides the member constantvalue equal to the width (number of elements) ofsimd<T, Abi>, irrespective of whethersimd<T, Abi> is supported or not. For any other typesT andAbi, there is no membervalue.

      If the program adds specializations forstd::simd_size orstd::simd_size_v(since C++17), the behavior is undefined.

      Contents

      [edit]Helper variable template

      template<class T,class Abi= simd_abi::compatible<T>>
      constexprstd::size_t simd_size_v= simd_size<T, Abi>::value;
      (parallelism TS v2)

      Inherited fromstd::integral_constant

      Member constants

      value
      [static]
      the width ofsimd<T, Abi>
      (public static member constant)

      Member functions

      operator std::size_t
      converts the object tostd::size_t, returnsvalue
      (public member function)
      operator()
      (C++14)
      returnsvalue
      (public member function)

      Member types

      Type Definition
      value_typestd::size_t
      typestd::integral_constant<std::size_t, value>

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      [static](parallelism TS v2)
      returns the width / number of elements
      (public static member function ofstd::experimental::simd<T,Abi>)[edit]
      [static](parallelism TS v2)
      returns the width / number of elements
      (public static member function ofstd::experimental::simd_mask<T,Abi>)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/simd/simd_size&oldid=176488"

      [8]ページ先頭

      ©2009-2026 Movatter.jp