Refactor contains and containsOnlyValue
-
containsshould be changed tofind(c.f. std::find) -
containsOnlyValueshould be generalized to have similar interface likestd::all_of,std::any_of,std::none_of: https://en.cppreference.com/w/cpp/algorithm/all_any_none_of - maybe we should add
operator==for comparing an array/vector with a scalar/ValueType
Edited by Jakub Klinkovský