◆ isincluded_c()

bool boost::simd::isincluded_c ( Value const &  x,
Value const &  y 
)

This function object returns true is only if all bits set in x are not set in y.

The two arguments must share the same bit size.

Header <boost/simd/function/isincluded_c.hpp>
Example:
#include <boost/simd/pack.hpp>
#include <boost/simd/reduction.hpp>
#include <iostream>
namespace bs = boost::simd;
using pack_it = bs::pack<std::int32_t, 4>;
int main() {
pack_it pi = {1, 2, 5, 2};
pack_it qi = {0, 1, 2, 8};
std::cout << "---- simd" << '\n'
<< "<- pi = " << pi << '\n'
<< "<- qi = " << qi << '\n'
<< "-> bs::isincluded_c(pi, qi) = " << bs::isincluded_c(pi, qi)
<< '\n';
return 0;
}
Possible output:
---- simd
<- pi = (1, 2, 5, 2)
<- qi = (0, 1, 2, 8)
-> bs::isincluded_c(pi, qi) = 1