logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::once_flag - Flag type used by std::call_once.

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++                               std::once_flag(3cxx)

Constructor & Destructor Documentation

std::once_flag::once_flag(constonce_flag&)[delete]
       Deleted copy constructor.

Detailed Description

       Flag type used by std::call_once.

Member Function Documentation

once_flag&std::once_flag::operator=(constonce_flag&)[delete]
       Deleted assignment operator.

Name

       std::once_flag - Flag type used by std::call_once.

Synopsis

       #include <mutex>

   PublicMemberFunctionsonce_flag (const once_flag &)=delete
           Deleted copy constructor.
       once_flag & operator= (const once_flag &)=delete
           Deleted assignment operator.

   Friends
       template<typename _Callable , typename... _Args> voidcall_once (once_flag &__once, _Callable &&__f,
           _Args &&... __args)
           Invoke a callable and synchronize with other calls using the same flag.

See Also