is_pair.hpp 901 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 <type_traits>
  16. namespace boost {
  17. namespace numeric {
  18. namespace odeint {
  19. template< class T >
  20. struct is_pair : public std::integral_constant<bool, false>
  21. {
  22. };
  23. template< class T1 , class T2 >
  24. struct is_pair< std::pair< T1 , T2 > > : public std::integral_constant<bool, true>
  25. {
  26. };
  27. } // namespace odeint
  28. } // namespace numeric
  29. } // namespace boost
  30. #endif // BOOST_NUMERIC_ODEINT_UTIL_IS_PAIR_HPP_INCLUDED