3 boost/numeric/odeint/util/is_pair.hpp
6 Metafunction to determine if a type is a std::pair<>.
9 Copyright 2011 Karsten Ahnert
10 Copyright 2011 Mario Mulansky
12 Distributed under the Boost Software License, Version 1.0.
13 (See accompanying file LICENSE_1_0.txt or
14 copy at http://www.boost.org/LICENSE_1_0.txt)
18 #ifndef BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED
19 #define BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED
22 #include <boost/mpl/bool.hpp>
31 struct is_pair : public boost::mpl::false_
35 template< class T1 , class T2 >
36 struct is_pair< std::pair< T1 , T2 > > : public boost::mpl::true_
41 } // namespace numeric
45 #endif // BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED