This is all in c++11.
I have a forward_list of custom objects which I need to sort. Thesehave integer values which I need to be able to sort by, forinstance myObject.getAge() will return an int value. I am havingtrouble using stl to sort these objects (ascendingly anddescindingly depending on a flag). Code is appreciated.
Expert Answer
An answer will be send to you shortly. . . . .