std::once_flag(3cxx)

std::once_flag3cxx

Flag type used by std::call_once.

Usage

#include <mutex>

Public Member Functions

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

Friends

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

Detailed Description

Flag type used by std::call_once.

Constructor & Destructor Documentation

std::once_flag::once_flag (const once_flag &) [delete]

Deleted copy constructor.

Member Function Documentation

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

Deleted assignment operator.

Releases

7 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0
  2. 7
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.