49 template <
long unsigned int N>
50 std::array<bool, N>
operator()(std::array<int, N> vCandidates)
const {
51 std::array<bool, N> valids;
53 for (
unsigned int i = 0; i < vCandidates.size(); i++) {
54 valids[i] = (vCandidates[i] > 0) ?
true :
false;
70 template <
long unsigned int N>
71 std::array<bool, N>
operator()(std::array<int, N> vCandidates)
const {
72 std::array<bool, N> valids = {};
74 for (
unsigned int i = 0; i < vCandidates.size(); i++) {
75 if (vCandidates[i] > 0) {
97 template <
long unsigned int N>
98 std::array<bool, N>
operator()(std::array<int, N> vCandidates)
const {
99 std::array<bool, N> valids = {};
101 auto highscore = std::max_element(vCandidates.begin(), vCandidates.end());
102 valids.at(std::distance(vCandidates.begin(), highscore)) =
true;