Created
September 23, 2016 16:09
-
-
Save ydakoukn/f179e39c742c2777d429af7cb91a21c4 to your computer and use it in GitHub Desktop.
C#のSystem.Action型をC++で実装してみた[使用例]
This file contains 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 characters
int main() { | |
VoidAction function([]() {std::cout << "きた" << std::endl; }); | |
function(); | |
function = []() {std::cout << "HelloWorld" << std::endl; }; | |
function.Invoke(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment