mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Simplify trait
This commit is contained in:
@@ -158,13 +158,7 @@ namespace BlackMisc
|
||||
* Trait that detects if a type is a member of a parameter pack.
|
||||
*/
|
||||
template <typename T, typename... Ts>
|
||||
struct TIsOneOf : public std::false_type {};
|
||||
//! \cond
|
||||
template <typename T, typename... Ts>
|
||||
struct TIsOneOf<T, T, Ts...> : public std::true_type {};
|
||||
template <typename T, typename T2, typename... Ts>
|
||||
struct TIsOneOf<T, T2, Ts...> : public TIsOneOf<T, Ts...> {};
|
||||
//! \endcond
|
||||
struct TIsOneOf : public std::disjunction<std::is_same<T, Ts>...> {};
|
||||
|
||||
/*!
|
||||
* Trait that detects if a type is QPrivateSignal.
|
||||
|
||||
Reference in New Issue
Block a user