Code: Select all
#include
#include
#include
#include
int main()
{
struct boo{
bool b;
bool get(){ return b; }
};
std::vector bools{ {0}, {0}, {0}, {1}, {0} };
if(std::ranges::any_of(bools, &boo::b )){
std::cout
Code: Select all
#include
#include
#include
#include
int main()
{
struct boo{
bool b;
bool get(){ return b; }
};
std::vector bools{ {0}, {0}, {0}, {1}, {0} };
if(std::ranges::any_of(bools, &boo::b )){
std::cout