mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +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.
|
* Trait that detects if a type is a member of a parameter pack.
|
||||||
*/
|
*/
|
||||||
template <typename T, typename... Ts>
|
template <typename T, typename... Ts>
|
||||||
struct TIsOneOf : public std::false_type {};
|
struct TIsOneOf : public std::disjunction<std::is_same<T, Ts>...> {};
|
||||||
//! \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
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Trait that detects if a type is QPrivateSignal.
|
* Trait that detects if a type is QPrivateSignal.
|
||||||
|
|||||||
Reference in New Issue
Block a user