Skip to content Skip to menu

categories

3GPP English FINANCE French MOOD RIL TRAVEL WORK

tag clouds

3GPP Algorithm Android Anxious C/C++ Career Celluar CICD Coding Confused Connection Design FinancialPlan français GPS Issue Java Job Language Life Linux LOGs Love LTE Mobile Network OOP OpenSource Python RIL tools Traveling Wireless

News

  • |Linux| Device Trees
  • |Français| Pas de Problème
  • |3GPP| ENDC attach procedure
  • |Career| The pyramid of engineers
  • |Life| DO, then EXTRACT

zhuzii's cafe

the procedure for better life

  • LinkenIn
  • github
  • ZHUZII

|C++| lambda expression

2020-03-022020-03-02 zhuziiC/C++

Example: notice the 3rd parameter of sort().

    vector<string> words = {"a", "afd", "fffff", "ew"};
    sort(words.begin(), words.end(),
        [](string a, string b){
            return a.size() < b.size();
        }
    );

Pro: beautiful expression for inline function XD

C++11 Lambda Expression 語法教學與範例

相關

Post navigation

← |Java| Say Hello to JNI
|Telephony| Initialize com.android.phone →
Website Built with WordPress.com.