44 template <
typename... Ts>
54 template <
typename... Ts>
55 using to_void =
typename make_void<Ts...>::type;
66 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 67 #pragma GCC diagnostic push 68 #pragma GCC diagnostic ignored "-Weffc++" 70 template <
typename T,
typename =
void>
71 struct is_iterable : std::false_type {};
72 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 73 #pragma GCC diagnostic pop 81 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 82 #pragma GCC diagnostic push 83 #pragma GCC diagnostic ignored "-Weffc++" 86 struct is_iterable<T, to_void<decltype(std::declval<T>().begin()),
87 decltype(std::declval<T>().end()),
88 decltype(*(std::declval<T>().begin()))>>
90 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 91 #pragma GCC diagnostic pop 103 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 104 #pragma GCC diagnostic push 105 #pragma GCC diagnostic ignored "-Weffc++" 107 template <
typename Derived>
108 struct is_matrix_expression
109 : std::is_base_of<Eigen::MatrixBase<typename std::decay<Derived>::type>,
110 typename std::decay<Derived>::type> {};
111 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 112 #pragma GCC diagnostic pop 122 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 123 #pragma GCC diagnostic push 124 #pragma GCC diagnostic ignored "-Weffc++" 126 template <
typename T>
127 struct is_complex : std::false_type {};
128 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 129 #pragma GCC diagnostic pop 137 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 138 #pragma GCC diagnostic push 139 #pragma GCC diagnostic ignored "-Weffc++" 141 template <
typename T>
142 struct is_complex<std::complex<T>> : std::true_type {};
143 #if ((__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && !__clang__) 144 #pragma GCC diagnostic pop Quantum++ main namespace.
Definition: circuits.h:35