Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:11

0001 //  (C) Copyright John Maddock 2007. 
0002 //  Use, modification and distribution are subject to the Boost Software License,
0003 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0004 //  http://www.boost.org/LICENSE_1_0.txt).
0005 //
0006 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
0007 
0008 #ifndef BOOST_TT_IS_COMPLEX_HPP
0009 #define BOOST_TT_IS_COMPLEX_HPP
0010 
0011 #include <boost/config.hpp>
0012 #include <complex>
0013 #include <boost/type_traits/integral_constant.hpp>
0014 
0015 namespace boost {
0016 
0017    template <class T> struct is_complex : public false_type {};
0018    template <class T> struct is_complex<const T > : public is_complex<T>{};
0019    template <class T> struct is_complex<volatile const T > : public is_complex<T>{};
0020    template <class T> struct is_complex<volatile T > : public is_complex<T>{};
0021    template <class T> struct is_complex<std::complex<T> > : public true_type{};
0022 
0023 } // namespace boost
0024 
0025 #endif //BOOST_TT_IS_COMPLEX_HPP