---
name: "std::__atomic_flag_base"
section: "3cxx"
platform: "linux"
package: "libstdc++-11-doc"
version: "11.3.0-12"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/std::__atomic_flag_base"
---

# std::\_\_atomic\_flag\_base(3cxx)

Base type for atomic\_flag.

## NAME

std::\_\_atomic\_flag\_base - Base type for atomic\_flag.

## SYNOPSIS

`#include <atomic_base.h>`

Inherited by **std::atomic\_flag**.

### Public Attributes

\_\_atomic\_flag\_data\_type **\_M\_i**\

## Detailed Description

Base type for atomic\_flag.

Base type is POD with data, allowing atomic\_flag to derive from it and meet the standard layout type requirement. In addition to compatibility with a C interface, this allows different implementations of atomic\_flag to use the same atomic operation functions, via a standard conversion to the \_\_atomic\_flag\_base argument.

Definition at line **186** of file **atomic\_base.h**.

## Member Data Documentation

### \_\_atomic\_flag\_data\_type std::\_\_atomic\_flag\_base::\_M\_i

Definition at line **188** of file **atomic\_base.h**.

## Author

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