Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::memory_alignment

      From cppreference.com
      <cpp‎ |experimental‎ |simd
       
       
       
       
       
      Defined in header<experimental/simd>
      template<class T,class U=typename T::value_type>
      struct memory_alignment;
      (parallelism TS v2)

      Ifis_simd_mask_v<T> istrue andU isbool, or ifis_simd_v<T> istrue andU is a vectorizable type, provides the member constantvalue equal to the minimum alignment of a pointer passed to a load constructor,copy_from function, orcopy_to function. For any other typesT andU, there is no membervalue.

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

      Contents

      [edit]Helper variable template

      template<class T,class U=typename T::value_type>
      constexprstd::size_t memory_alignment_v= memory_alignment<T, U>::value;
      (parallelism TS v2)

      Inherited fromstd::integral_constant

      Member constants

      value
      [static]
      the minimum alignment of a pointer passed to a load constructor,copy_from function, orcopy_to function
      (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

      flag indicating alignment of the load/store address to vector alignment
      (class)[edit]
      (parallelism TS v2)
      constructs asimd object
      (public member function ofstd::experimental::simd<T,Abi>)[edit]
      (parallelism TS v2)
      loadssimd elements from contiguous memory
      (public member function ofstd::experimental::simd<T,Abi>)[edit]
      (parallelism TS v2)
      storessimd elements to contiguous memory
      (public member function ofstd::experimental::simd<T,Abi>)[edit]
      (parallelism TS v2)
      constructs asimd_mask object
      (public member function ofstd::experimental::simd_mask<T,Abi>)[edit]
      (parallelism TS v2)
      loadssimd_mask elements from contiguous memory
      (public member function ofstd::experimental::simd_mask<T,Abi>)[edit]
      (parallelism TS v2)
      storessimd_mask elements to contiguous memory
      (public member function ofstd::experimental::simd_mask<T,Abi>)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/simd/memory_alignment&oldid=176489"

      [8]ページ先頭

      ©2009-2026 Movatter.jp