safe_mode_errors.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Copyright 2003-2020 Joaquin M Lopez Munoz.
  2. * Distributed under the Boost Software License, Version 1.0.
  3. * (See accompanying file LICENSE_1_0.txt or copy at
  4. * http://www.boost.org/LICENSE_1_0.txt)
  5. *
  6. * See http://www.boost.org/libs/multi_index for library home page.
  7. */
  8. #ifndef BOOST_MULTI_INDEX_SAFE_MODE_ERRORS_HPP
  9. #define BOOST_MULTI_INDEX_SAFE_MODE_ERRORS_HPP
  10. #if defined(_MSC_VER)
  11. #pragma once
  12. #endif
  13. namespace boost{
  14. namespace multi_index{
  15. namespace safe_mode{
  16. /* Error codes for Boost.MultiIndex safe mode. These go in a separate
  17. * header so that the user can include it when redefining
  18. * BOOST_MULTI_INDEX_SAFE_MODE_ASSERT prior to the inclusion of
  19. * any other header of Boost.MultiIndex.
  20. */
  21. enum error_code
  22. {
  23. invalid_iterator=0,
  24. not_dereferenceable_iterator,
  25. not_incrementable_iterator,
  26. not_decrementable_iterator,
  27. not_owner,
  28. not_same_owner,
  29. invalid_range,
  30. inside_range,
  31. out_of_bounds,
  32. same_container,
  33. unequal_allocators
  34. };
  35. } /* namespace multi_index::safe_mode */
  36. } /* namespace multi_index */
  37. } /* namespace boost */
  38. #endif