std::experimental::atomic_shared_ptr<T>:: atomic_shared_ptr
From cppreference.net
<
cpp
|
experimental
|
atomic shared ptr
|
constexpr
atomic_shared_ptr
(
)
noexcept
;
|
(1) | |
|
constexpr
atomic_shared_ptr
(
shared_ptr
<
T
>
desired
)
noexcept
;
|
(2) | |
|
atomic_shared_ptr
(
const
atomic_shared_ptr
&
)
=
delete
;
|
(3) | |
Construit un nouvel objet
atomic_shared_ptr
.
1)
Le constructeur par défaut initialise l'objet à un état vide.
2)
Initialise le
shared_ptr<T>
sous-jacent avec
desired
. L'initialisation n'est pas atomique.
3)
Les variables atomiques ne sont pas
CopyConstructible
.
Paramètres
| désiré | - | valeur d'initialisation |