mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
14 lines
278 B
C++
14 lines
278 B
C++
template <class T>
|
|
struct GetTypeValue {
|
|
static constexpr const bool value = T::value;
|
|
};
|
|
|
|
using Invalid1 = GetTypeValue<int>;
|
|
|
|
template <class T>
|
|
struct GetTypeValueInline {
|
|
inline static constexpr const bool value = T::value;
|
|
};
|
|
|
|
using Invalid2 = GetTypeValueInline<int>;
|