1 // Copyright David Abrahams 2002.
2 // Distributed under the Boost Software License, Version 1.0. (See
3 // accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5 #ifndef OPERATOR_ID_DWA2002531_HPP
6 # define OPERATOR_ID_DWA2002531_HPP
7 
8 namespace boost { namespace python { namespace detail {
9 
10 enum operator_id
11 {
12     op_add,
13     op_sub,
14     op_mul,
15     op_div,
16     op_mod,
17     op_divmod,
18     op_pow,
19     op_lshift,
20     op_rshift,
21     op_and,
22     op_xor,
23     op_or,
24     op_neg,
25     op_pos,
26     op_abs,
27     op_invert,
28     op_int,
29     op_long,
30     op_float,
31     op_str,
32     op_cmp,
33     op_gt,
34     op_ge,
35     op_lt,
36     op_le,
37     op_eq,
38     op_ne,
39     op_iadd,
40     op_isub,
41     op_imul,
42     op_idiv,
43     op_imod,
44     op_ilshift,
45     op_irshift,
46     op_iand,
47     op_ixor,
48     op_ior,
49     op_complex,
50 #if PY_VERSION_HEX >= 0x03000000
51     op_bool,
52 #else
53     op_nonzero,
54 #endif
55     op_repr
56 #if PY_VERSION_HEX >= 0x03000000
57     ,op_truediv
58 #endif
59 };
60 
61 }}} // namespace boost::python::detail
62 
63 #endif // OPERATOR_ID_DWA2002531_HPP
64