Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename T> void tunit_recall::init_sorting_option(std::vector<tgenerator_::torder_func>& order_funcs, T filter_on)
- {
- order_funcs[0] = [this, filter_on](unsigned i1, unsigned i2)->bool {
- return filter_on((*recall_list_)[i1]) < filter_on((*recall_list_)[i2]);
- };
- order_funcs[1] = [this, filter_on](unsigned i1, unsigned i2)->bool {
- return filter_on((*recall_list_)[i1]) > filter_on((*recall_list_)[i2]);
- };
- }
- init_sorting_option(order_funcs, std::bind(&unit::type_name, _1));
Advertisement
Add Comment
Please, Sign In to add comment