is_pair.hpp 895 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. [auto_generated]
  3. boost/numeric/odeint/util/is_pair.hpp
  4. [begin_description]
  5. Metafunction to determine if a type is a std::pair<>.
  6. [end_description]
  7. Copyright 2011 Karsten Ahnert
  8. Copyright 2011 Mario Mulansky
  9. Distributed under the Boost Software License, Version 1.0.
  10. (See accompanying file LICENSE_1_0.txt or
  11. copy at http://www.boost.org/LICENSE_1_0.txt)
  12. */
  13. #ifndef BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED
  14. #define BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED
  15. #include <boost/mpl/bool.hpp>
  16. #include <utility>
  17. namespace boost {
  18. namespace numeric {
  19. namespace odeint {
  20. template< class T >
  21. struct is_pair : public boost::mpl::false_
  22. {
  23. };
  24. template< class T1 , class T2 >
  25. struct is_pair< std::pair< T1 , T2 > > : public boost::mpl::true_
  26. {
  27. };
  28. } // namespace odeint
  29. } // namespace numeric
  30. } // namespace boost
  31. #endif // BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED