"library/vscode:/vscode.git/clone" did not exist on "cd167e492a8f85ec6f5965e50667e8a58d3aa3a1"
enable_if.hpp 265 Bytes
Newer Older
Chao Liu's avatar
Chao Liu committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef CK_ENABLE_IF_HPP
#define CK_ENABLE_IF_HPP

namespace ck {

template <bool B, typename T = void>
using enable_if = std::enable_if<B, T>;

template <bool B, typename T = void>
using enable_if_t = typename std::enable_if<B, T>::type;

} // namespace ck
#endif