Skip to content

Instantly share code, notes, and snippets.

@ashish157
Last active June 20, 2017 07:13
Show Gist options
  • Select an option

  • Save ashish157/c4822ead1423b414548b8a8581c61a08 to your computer and use it in GitHub Desktop.

Select an option

Save ashish157/c4822ead1423b414548b8a8581c61a08 to your computer and use it in GitHub Desktop.

Revisions

  1. ashish157 renamed this gist Jun 20, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. ashish157 revised this gist Jun 19, 2017. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -3,10 +3,13 @@
    using namespace std;

    int add( int a, int b ) {
    return a + b;
    return a + b;
    }

    int main() {
    auto addF = bind( add, 1, 2 );
    cout << addF() << "\n";
    }
    auto addF = bind( add, 1, 2 );
    cout << addF() << "\n";
    }

    /*******************/
    3
  3. ashish157 created this gist Jun 19, 2017.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #include <iostream>
    #include <functional>
    using namespace std;

    int add( int a, int b ) {
    return a + b;
    }

    int main() {
    auto addF = bind( add, 1, 2 );
    cout << addF() << "\n";
    }