1 ///////////////////////////////////////////////////////////////////////////////
3 /// Contains the tags for all the overloadable operators in C++
5 // Copyright 2008 Eric Niebler. Distributed under the Boost
6 // Software License, Version 1.0. (See accompanying file
7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 #ifndef BOOST_PROTO_TAGS_HPP_EAN_04_01_2005
10 #define BOOST_PROTO_TAGS_HPP_EAN_04_01_2005
12 #include <boost/proto/proto_fwd.hpp>
14 namespace boost { namespace proto { namespace tagns_ { namespace tag
17 /// Tag type for terminals; aka, leaves in the expression tree.
20 /// Tag type for the unary + operator.
23 /// Tag type for the unary - operator.
26 /// Tag type for the unary * operator.
27 struct dereference {};
29 /// Tag type for the unary ~ operator.
32 /// Tag type for the unary & operator.
35 /// Tag type for the unary ! operator.
36 struct logical_not {};
38 /// Tag type for the unary prefix ++ operator.
41 /// Tag type for the unary prefix -- operator.
44 /// Tag type for the unary postfix ++ operator.
47 /// Tag type for the unary postfix -- operator.
50 /// Tag type for the binary \<\< operator.
53 /// Tag type for the binary \>\> operator.
54 struct shift_right {};
56 /// Tag type for the binary * operator.
59 /// Tag type for the binary / operator.
62 /// Tag type for the binary % operator.
65 /// Tag type for the binary + operator.
68 /// Tag type for the binary - operator.
71 /// Tag type for the binary \< operator.
74 /// Tag type for the binary \> operator.
77 /// Tag type for the binary \<= operator.
80 /// Tag type for the binary \>= operator.
81 struct greater_equal {};
83 /// Tag type for the binary == operator.
86 /// Tag type for the binary != operator.
87 struct not_equal_to {};
89 /// Tag type for the binary || operator.
92 /// Tag type for the binary && operator.
93 struct logical_and {};
95 /// Tag type for the binary & operator.
96 struct bitwise_and {};
98 /// Tag type for the binary | operator.
101 /// Tag type for the binary ^ operator.
102 struct bitwise_xor {};
104 /// Tag type for the binary , operator.
107 /// Tag type for the binary ->* operator.
110 /// Tag type for the binary = operator.
113 /// Tag type for the binary \<\<= operator.
114 struct shift_left_assign {};
116 /// Tag type for the binary \>\>= operator.
117 struct shift_right_assign {};
119 /// Tag type for the binary *= operator.
120 struct multiplies_assign {};
122 /// Tag type for the binary /= operator.
123 struct divides_assign {};
125 /// Tag type for the binary %= operator.
126 struct modulus_assign {};
128 /// Tag type for the binary += operator.
129 struct plus_assign {};
131 /// Tag type for the binary -= operator.
132 struct minus_assign {};
134 /// Tag type for the binary &= operator.
135 struct bitwise_and_assign {};
137 /// Tag type for the binary |= operator.
138 struct bitwise_or_assign {};
140 /// Tag type for the binary ^= operator.
141 struct bitwise_xor_assign {};
143 /// Tag type for the binary subscript operator.
146 /// Tag type for the binary virtual data members.
149 /// Tag type for the ternary ?: conditional operator.
152 /// Tag type for the n-ary function call operator.