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