Support Class Library
A set of tools providing classes and utility
include
scl
tools
meta
defines_scl_to_string.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
scl/tools/meta/void_t.h
>
4
#include <
scl/tools/meta/type_mod.h
>
5
#include <
scl/utils/toString.h
>
6
7
namespace
scl
{
8
namespace
tools{
9
namespace
meta{
10
namespace
details{
11
template
<
class
T,
class
=
void
>
12
struct
__toStringDefined
: std::false_type{
13
};
14
15
template
<
class
T>
16
struct
__toStringDefined
<T,
void_t
<
scl
::
utils::ToString
<T>>> : std::true_type{
17
};
18
}
19
25
template
<
class
T>
26
inline
constexpr
bool
defines_scl_to_string
(){
27
return
details::__toStringDefined<T>::value
;
28
}
29
}
30
}
31
}
scl::tools::meta::void_t
void void_t
The must have.
Definition:
void_t.h:10
scl
Global namespace of the SCL.
Definition:
alias.hpp:3
scl::utils::ToString
Definition:
toString.h:21
type_mod.h
scl::tools::meta::details::__toStringDefined
Definition:
defines_scl_to_string.h:12
toString.h
scl::tools::meta::defines_scl_to_string
constexpr bool defines_scl_to_string()
Determines whether or not ToString has been specialized for the given type.
Definition:
defines_scl_to_string.h:26
void_t.h
Generated by
1.8.13