Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:24

0001 ///////////////////////////////////////////////////////////////////////////////
0002 //  Copyright 2018 John Maddock. Distributed under the Boost
0003 //  Software License, Version 1.0. (See accompanying file
0004 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 #ifndef BOOST_MP_IS_COMPLEX_HPP
0007 #define BOOST_MP_IS_COMPLEX_HPP
0008 
0009 #include <type_traits>
0010 #include <complex>
0011 
0012 namespace boost { namespace multiprecision { namespace detail {
0013 
0014 template <class T> struct is_complex : public std::integral_constant<bool, false> {};
0015 
0016 template <class T> struct is_complex<std::complex<T> > : public std::integral_constant<bool, true> {};
0017 
0018 }
0019 }
0020 } // namespace boost::multiprecision::detail
0021 
0022 #endif // BOOST_MP_IS_BACKEND_HPP