◆ slice() [2/2]
template<typename Type , typename Cardinal >
template<std::size_t Slice>
Return the upper or lower half-sized slice of a eve::logical. Does not participate in overload resolution if
Example: See it live on Compiler Explorer #include <eve/logical.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
// Generates the logical<wide> [true false true .. ]
std::cout << r << "\n";
auto lo = r.slice(eve::lower_);
auto hi = r.slice(eve::upper_);
}
constexpr callable_hi_ hi Callable object computing the higher part of the values. Definition: hi.hpp:59 constexpr callable_lo_ lo Callable object computing the lower part of the values. Definition: lo.hpp:59 |