enable_if.hpp 483 Bytes
Newer Older
Chao Liu's avatar
Chao Liu committed
1
// SPDX-License-Identifier: MIT
Illia Silin's avatar
Illia Silin committed
2
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
Chao Liu's avatar
Chao Liu committed
3

4
#pragma once
Umang Yadav's avatar
Umang Yadav committed
5
6
7
8
9
10
#ifdef __HIPCC_RTC__
namespace std {
template <bool B, typename T = void>
using enable_if_t = typename enable_if<B, T>::type;
} // namespace std
#endif
Chao Liu's avatar
Chao Liu committed
11
12
namespace ck {

Umang Yadav's avatar
Umang Yadav committed
13
14
template <bool B, typename T = void>
using enable_if = std::enable_if<B, T>;
Chao Liu's avatar
Chao Liu committed
15
16
17
18
19

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

} // namespace ck