libstdc++
std::once_flag Struct Reference

Public Member Functions

constexpr once_flag () noexcept=default
 
 once_flag (const once_flag &)=delete
 
once_flagoperator= (const once_flag &)=delete
 

Friends

template<typename _Callable , typename... _Args>
void call_once (once_flag &__once, _Callable &&__f, _Args &&... __args)
 

Detailed Description

once_flag

Definition at line 629 of file mutex.

Constructor & Destructor Documentation

◆ once_flag() [1/2]

constexpr std::once_flag::once_flag ( )
defaultnoexcept

Constructor.

◆ once_flag() [2/2]

std::once_flag::once_flag ( const once_flag )
delete

Deleted copy constructor.

Member Function Documentation

◆ operator=()

once_flag& std::once_flag::operator= ( const once_flag )
delete

Deleted assignment operator.

Friends And Related Function Documentation

◆ call_once

template<typename _Callable , typename... _Args>
void call_once ( once_flag __once,
_Callable &&  __f,
_Args &&...  __args 
)
friend

call_once

Definition at line 667 of file mutex.


The documentation for this struct was generated from the following file: