auto compare = [](int x, int y) {
return x < y ? "x is less than y" : "x is greater than y";
};
5
solved How can I return string instead of bool in lambda?
auto compare = [](int x, int y) {
return x < y ? "x is less than y" : "x is greater than y";
};
5
solved How can I return string instead of bool in lambda?