fix doc example typo
[boost.git] / boost / multi_index / safe_mode_errors.hpp
blobff6f96065cb62a0e9159064519713f83101a43b1
1 /* Copyright 2003-2008 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)
6 * See http://www.boost.org/libs/multi_index for library home page.
7 */
9 #ifndef BOOST_MULTI_INDEX_SAFE_MODE_ERRORS_HPP
10 #define BOOST_MULTI_INDEX_SAFE_MODE_ERRORS_HPP
12 #if defined(_MSC_VER)&&(_MSC_VER>=1200)
13 #pragma once
14 #endif
16 namespace boost{
18 namespace multi_index{
20 namespace safe_mode{
22 /* Error codes for Boost.MultiIndex safe mode. These go in a separate
23 * header so that the user can include it when redefining
24 * BOOST_MULTI_INDEX_SAFE_MODE_ASSERT prior to the inclusion of
25 * any other header of Boost.MultiIndex.
28 enum error_code
30 invalid_iterator=0,
31 not_dereferenceable_iterator,
32 not_incrementable_iterator,
33 not_decrementable_iterator,
34 not_owner,
35 not_same_owner,
36 invalid_range,
37 inside_range,
38 out_of_bounds,
39 same_container
42 } /* namespace multi_index::safe_mode */
44 } /* namespace multi_index */
46 } /* namespace boost */
48 #endif