Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 439 Bytes
#include <algorithm>
#include <vector>
#include <cstdint>
void copy_if_epi8(const std::vector<int8_t>& v, std::vector<int8_t>& out) {
std::copy_if(v.begin(), v.end(), std::back_inserter(out),
[](int8_t x){return x > 0;});
}
void copy_if_epi32(const std::vector<int32_t>& v, std::vector<int32_t>& out) {
std::copy_if(v.begin(), v.end(), std::back_inserter(out),
[](int32_t x){return x > 0;});
}