Skip to content

Instantly share code, notes, and snippets.

@ydakoukn
Created September 23, 2016 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ydakoukn/f179e39c742c2777d429af7cb91a21c4 to your computer and use it in GitHub Desktop.
Save ydakoukn/f179e39c742c2777d429af7cb91a21c4 to your computer and use it in GitHub Desktop.
C#のSystem.Action型をC++で実装してみた[使用例]
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