|
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator > |
void | aaa::logical_or (InputIterator1 first_left, InputIterator1 last_left, InputIterator2 first_right, OutputIterator first_out) |
|
template<typename Container1 , typename Container2 , typename Container3 > |
void | aaa::logical_or (const Container1 &left, const Container2 &right, Container3 &out) |
|
template<typename Container > |
Container | aaa::logical_or (const Container &left, const Container &right) |
|
std::vector<bool> in1 = { true, false, true, false };
std::vector<bool> in2 = { true, false, true, false };
std::valarray<bool> in3 = { true, false, true, false };
std::array<bool, 4> in4 = { true, false, true, false };
std::array<bool, 6> in5 = { true, false, true, false, true, false };
std::vector<bool> out = { true, false, true, false };
out = logical_or(in1, in2);
logical_or(in3, in4, out);
logical_or(begin(in5) + 1, begin(in5) + 5, begin(in4), begin(out));