Last active
May 3, 2020 22:14
-
-
Save ridiculousfish/ca6ec9ac62df1ea166359573017c95f5 to your computer and use it in GitHub Desktop.
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
#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