Support Class Library
A set of tools providing classes and utility
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Functions
_
a
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
w
Variables
+
Typedefs
a
c
d
e
f
h
i
l
m
n
r
s
t
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Typedefs
a
c
d
e
f
g
i
k
l
m
n
o
p
q
r
s
t
v
Related Functions
+
Files
File List
+
File Members
+
All
a
c
d
m
o
r
s
t
v
Functions
+
Macros
a
c
d
m
r
s
t
v
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Pages
include
scl
tools
make
atomic.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <utility>
4
#include <atomic>
5
#include <
scl/tools/make/from.h
>
6
7
namespace
scl
{
8
namespace
tools{
9
namespace
make
{
17
template
<
class
T,
class
... Args>
18
inline
std::atomic<T>
atomic
(Args&&... args){
19
return
std::atomic<T>{
make::from
(std::forward<Args>(args)...)};
20
}
21
}
22
}
23
}
scl::tools::make::from
T from(Args &&... args)
Instantiate the given value type in-place with the given set of arguments.
Definition:
from.h:16
scl
Global namespace of the SCL.
Definition:
alias.hpp:3
scl::tools::make
Group of factory functions.
Definition:
any.h:8
from.h
scl::tools::make::atomic
std::atomic< T > atomic(Args &&... args)
Creates an atomic in-place with the given set of arguments.
Definition:
atomic.h:18
Generated by
1.8.13