1 /* 2 [auto_generated] 3 boost/numeric/odeint/util/is_pair.hpp 4 5 [begin_description] 6 Metafunction to determine if a type is a std::pair<>. 7 [end_description] 8 9 Copyright 2011 Karsten Ahnert 10 Copyright 2011 Mario Mulansky 11 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) 15 */ 16 17 18 #ifndef BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED 19 #define BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED 20 21 22 #include <boost/mpl/bool.hpp> 23 #include <utility> 24 25 26 namespace boost { 27 namespace numeric { 28 namespace odeint { 29 30 template< class T > 31 struct is_pair : public boost::mpl::false_ 32 { 33 }; 34 35 template< class T1 , class T2 > 36 struct is_pair< std::pair< T1 , T2 > > : public boost::mpl::true_ 37 { 38 }; 39 40 } // namespace odeint 41 } // namespace numeric 42 } // namespace boost 43 44 45 #endif // BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED 46