Created
May 4, 2020 22:03
-
-
Save ridiculousfish/0a24a98e7634b78e77a0351501576ee8 to your computer and use it in GitHub Desktop.
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 characters
#include <mutex> | |
static void hello() {} | |
int main(void) | |
{ | |
std::once_flag just_once{}; | |
std::call_once(just_once, hello); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment