c++,c++11,wrapper,member-pointers,mem-fun
N.B. Nothing in your question is from the STL (which is a library from the 1990s), std::function and std::mem_fn are part of the C++ Standard Library, which is not the same thing. std::mem_fn supports member functions and member variables, so you can just do this to access the member variable...
There's no need to mix bind, bind1st and mem_fun to do this (the latter two are deprecated in C++11); just use a lambda bool call = std::find_if(list.begin(), list.end(), [this](std::pair< strucure1,double > const& el) { return el.second == z; }) != list.end(); Or if you want to call Scheduled bool call...
You can use std::bind too (or lambdas): Live On Coliru #include <algorithm> #include <vector> #include <memory> struct Base { virtual double stuff(double) { return 0; } }; struct Threes : Base { virtual double stuff(double) { return 3; } }; struct Sevens : Base { virtual double stuff(double) { return...