Comet

Comet Comet

Niner since 2012

Comments

  • STL11: Magic && Secrets

    Here is the future sample code:

    string flip(string s) {   

    reverse(begin(s), end(s));

     return s;

    }

    vector<future<string>> v;

    v.push_back(async( [] {return flip(" ,gnol oS"); }));

    v.push_back(async( [] {return flip(" dlrow"); }));

    v.push_back(async( [] {return flip("\n.ti wonk ew sa"); }));

    for(auto& e : v) { cout << e.get(); }

     

    Thanks,

    Comet

    purr more, hiss less