---
name: "std::atomic_ref"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::atomic_ref"
---

# std::atomic\_ref(3cxx)

Class template to provide atomic operations on a non-atomic variable.

## NAME

std::atomic\_ref\< \_Tp \> - Class template to provide atomic operations on a non-atomic variable.

## SYNOPSIS

`#include <atomic>`

Inherits \_\_atomic\_ref\< \_Tp \>.

### Public Member Functions

**atomic\_ref** (\_Tp &\_\_t) noexcept\
 **atomic\_ref** (const **atomic\_ref** &)=**default**\
 **atomic\_ref** & **operator=** (const **atomic\_ref** &)=**delete**\

## Detailed Description

### template\<typename \_Tp\>

struct std::atomic\_ref\< \_Tp \>"Class template to provide atomic operations on a non-atomic variable.

## Author

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