Last active
June 20, 2017 07:13
-
-
Save ashish157/c4822ead1423b414548b8a8581c61a08 to your computer and use it in GitHub Desktop.
Revisions
-
ashish157 renamed this gist
Jun 20, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ashish157 revised this gist
Jun 19, 2017 . 1 changed file with 7 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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; } int main() { auto addF = bind( add, 1, 2 ); cout << addF() << "\n"; } /*******************/ 3 -
ashish157 created this gist
Jun 19, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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"; }