minimal_pair_header.hpp 904 B

123456789101112131415161718192021222324252627282930
  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2014-2015
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/intrusive for documentation.
  10. //
  11. /////////////////////////////////////////////////////////////////////////////
  12. #ifndef BOOST_INTRUSIVE_DETAIL_MINIMAL_PAIR_HEADER_HPP
  13. #define BOOST_INTRUSIVE_DETAIL_MINIMAL_PAIR_HEADER_HPP
  14. #
  15. #if defined(BOOST_HAS_PRAGMA_ONCE)
  16. # pragma once
  17. #endif
  18. #
  19. #ifndef BOOST_CONFIG_HPP
  20. # include <boost/config.hpp>
  21. #endif
  22. #
  23. #//Try to avoid including <utility>, as it's quite big in C++11
  24. #if defined(BOOST_GNU_STDLIB)
  25. # include <bits/stl_pair.h>
  26. #else
  27. # include <utility> //Fallback
  28. #endif
  29. #
  30. #endif //BOOST_INTRUSIVE_DETAIL_MINIMAL_PAIR_HEADER_HPP