Nice work on the range based for loops! Working like a charm.
I would like to use the MFC collection classes in the std algorithms, like std::all_of. Looks like I need an iterator for the begin and the end of the array I'm using (CTypedPtrArray).
Can someone give an example of how to implement this?
Usage example:
CTypedPtrArray<CObArray, CAppointment*> appointmentArr;
bool bAllAppointmentsToday = std::all_of(...begin..., ....end...,
[](CAppointment* app) { return app->IsToday(); });
assert(bAllAppointmentsToday);
Nice work on the range based for loops! Working like a charm.
I would like to use the MFC collection classes in the std algorithms, like std::all_of. Looks like I need an iterator for the begin and the end of the array I'm using (CTypedPtrArray).
Can someone give an example of how to implement this?
Usage example: