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
concepts
Swappable.h
Go to the documentation of this file.
1
#pragma once
2
3
//#ifdef SCL_CPP17
4
#include <
scl/tools/meta/type_check.h
>
5
6
namespace
scl
{
7
namespace
concepts{
12
template
<
class
T>
13
struct
Swappable
{
14
constexpr
operator
bool()
const
{
15
using namespace
scl::tools
;
16
static_assert(meta::is_swappable<T>(),
"Swappable<T>: T does not implement swapping mechanisms."
);
17
return
true
;
18
}
19
};
20
}
21
}
22
//#endif
scl
Global namespace of the SCL.
Definition:
alias.hpp:3
scl::concepts::Swappable
Swappable concept, a type is swappable if it defines swapping mecanisms.
Definition:
Swappable.h:13
scl::tools
General purpose tooling.
Definition:
iostream.hpp:4
type_check.h
Generated by
1.8.13