#include "range/v3/algorithm/contains.hpp" #include <array> int main() { if( ranges::contains(std::array{1,2,3,4,5,6}, 42) ) { return 0; } return 1; }