O'Reilly logo

C++11 für Programmierer by Rainer Grimm

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Kapitel 13. Atomare Datentypen

C++11 bringt im Header <atomic> atomare Datentypen mit. Operationen auf diesen Datentypen sind atomar.

Neben dem Klassen-Template std::atomic für das Erzeugen eines atomaren Typs bietet C++11 die entsprechenden Built-in-Datentypen in atomarer Ausprägung an (Tabelle 13.1).

Tabelle 13.1 Atomare Typen und ihre Built-in-Pendants

Atomarer Typ

Built-in-Typ

atomic_bool

bool

atomic_char

char

atomic_schar

signed char

atomic_uchar

unsigned char

atomic_int

int

atomic_unit

unsigned int

atomic_short

short

atomic_ushort

unsigned short

atomic_long

long

atomic_ulong

unsigned long

atomic_llong

long long

atomic_ullong

unsigned long ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required