Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::where

      From cppreference.com
      <cpp‎ |experimental‎ |simd
       
       
       
       
       
      Defined in header<experimental/simd>
      template<class T,class Abi>

      where_expression<simd_mask<T, Abi>, simd<T, Abi>>
          where(consttypename simd<T, Abi>::mask_type& mask,

                 simd<T, Abi>& value)noexcept;
      (1)(parallelism TS v2)
      template<class T,class Abi>

      const_where_expression<simd_mask<T, Abi>,const simd<T, Abi>>
          where(consttypename simd<T, Abi>::mask_type& mask,

                 const simd<T, Abi>& value)noexcept;
      (2)(parallelism TS v2)
      template<class T,class Abi>

      where_expression<simd_mask<T, Abi>, simd_mask<T, Abi>>
          where(const type_identity_t<simd_mask<T, Abi>>& mask,

                 simd_mask<T, Abi>& value)noexcept;
      (3)(parallelism TS v2)
      template<class T,class Abi>

      const_where_expression<simd_mask<T, Abi>,const simd_mask<T, Abi>>
          where(const type_identity_t<simd_mask<T, Abi>>& mask,

                 const simd_mask<T, Abi>& value)noexcept;
      (4)(parallelism TS v2)
      template<class T>

      where_expression<bool, T>

          where(/*see below*/ mask, T& value)noexcept;
      (5)(parallelism TS v2)
      template<class T>

      const_where_expression<bool,const T>

          where(/*see below*/ mask,const T& value)noexcept;
      (6)(parallelism TS v2)

      Constructs a newconst_where_expression orwhere_expression.

      1-6) Constructs awhere_expression from given mask and value parameters.

      Contents

      [edit]Parameters

      1-4)
      mask - thesimd_mask object
      value - reference to thesimd object that mask applies on
      5,6)
      mask - the mask of typebool
      value - reference to the scalar that mask applies on

      [edit]Return value

      The constructedconst_where_expression orwhere_expression.

      [edit]Notes

      5,6) Uses implementation defined type of mask, so that implicit conversions from other types tobool is disabled.

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/simd/where&oldid=159994"

      [8]ページ先頭

      ©2009-2025 Movatter.jp