Hey, I need some help with a functor in C++ for the copy_if algorithm. PM me if you can help, thanks in advance
std::copy_if(estateList.begin(), estateList.end(), result.begin(), [&town](CEstate* estate) -> bool { estate->town == town; });
std::copy_if(estateList.begin(), estateList.end(), listByTown.begin(), [&town](CEstate* estate) -> bool { return estate->getAddress() == town; });
std::copy_if(estateList.begin(), estateList.end(), std::back_inserter(listByTown), [&town](CEstate* estate) -> bool { return estate->getAddress() == town; });