My Project
include
bsl
enable_if.hpp
Go to the documentation of this file.
1
28
#ifndef BSL_ENABLE_IF_HPP
29
#define BSL_ENABLE_IF_HPP
30
31
namespace
bsl
32
{
46
template
<
bool
B,
typename
T =
void
>
47
struct
enable_if
final
48
{};
49
51
template
<
bool
B,
typename
T =
void
>
52
using
enable_if_t
=
typename
enable_if<B, T>::type
;
53
55
56
template
<
typename
T>
57
struct
enable_if
<true, T> final
58
{
60
using
type = T;
61
};
62
64
}
65
66
#endif
bsl::enable_if
Defines a conditional "if" statement for SFINAE overload resolution. If B is true,...
Definition:
enable_if.hpp:47
bsl::enable_if_t
typename enable_if< B, T >::type enable_if_t
a helper that reduces the verbosity of bsl::enable_if
Definition:
enable_if.hpp:52
Generated by
1.8.15