1///////////////////////////////////////////////////////////////////////////////
2// Copyright 2018 John Maddock. Distributed under the Boost
3// Software License, Version 1.0. (See accompanying file
4// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6#ifndef BOOST_MP_IS_COMPLEX_HPP
7#define BOOST_MP_IS_COMPLEX_HPP
8
9#include <type_traits>
10#include <complex>
11
12namespace boost { namespace multiprecision { namespace detail {
13
14template <class T> struct is_complex : public std::integral_constant<bool, false> {};
15
16template <class T> struct is_complex<std::complex<T> > : public std::integral_constant<bool, true> {};
17
18}
19}
20} // namespace boost::multiprecision::detail
21
22#endif // BOOST_MP_IS_BACKEND_HPP
23

source code of boost/libs/multiprecision/include/boost/multiprecision/traits/is_complex.hpp