is_same.hpp 601 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef BOOST_SYSTEM_DETAIL_IS_SAME_HPP_INCLUDED
  2. #define BOOST_SYSTEM_DETAIL_IS_SAME_HPP_INCLUDED
  3. // Copyright 2021 Peter Dimov
  4. // Distributed under the Boost Software License, Version 1.0
  5. // http://www.boost.org/LICENSE_1_0.txt
  6. namespace boost
  7. {
  8. namespace system
  9. {
  10. namespace detail
  11. {
  12. template<class T1, class T2> struct is_same
  13. {
  14. enum _vt { value = 0 };
  15. };
  16. template<class T> struct is_same<T, T>
  17. {
  18. enum _vt { value = 1 };
  19. };
  20. } // namespace detail
  21. } // namespace system
  22. } // namespace boost
  23. #endif // #ifndef BOOST_SYSTEM_DETAIL_IS_SAME_HPP_INCLUDED