bitwise.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*==============================================================================
  2. Copyright (c) 2005-2010 Joel de Guzman
  3. Copyright (c) 2010 Thomas Heller
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #ifndef BOOST_PHOENIX_OPERATOR_BITWISE_HPP
  8. #define BOOST_PHOENIX_OPERATOR_BITWISE_HPP
  9. #include <boost/phoenix/operator/detail/define_operator.hpp>
  10. #include <boost/phoenix/core/expression.hpp>
  11. #include <boost/proto/operators.hpp>
  12. namespace boost { namespace phoenix
  13. {
  14. BOOST_PHOENIX_UNARY_OPERATORS(
  15. (complement)
  16. )
  17. BOOST_PHOENIX_BINARY_OPERATORS(
  18. (bitwise_and_assign)
  19. (bitwise_or_assign)
  20. (bitwise_xor_assign)
  21. (shift_left_assign)
  22. (shift_right_assign)
  23. (bitwise_and)
  24. (bitwise_or)
  25. (bitwise_xor)
  26. (shift_left)
  27. (shift_right)
  28. )
  29. using proto::exprns_::operator~;
  30. using proto::exprns_::operator&=;
  31. using proto::exprns_::operator|=;
  32. using proto::exprns_::operator^=;
  33. using proto::exprns_::operator<<=;
  34. using proto::exprns_::operator>>=;
  35. using proto::exprns_::operator&;
  36. using proto::exprns_::operator|;
  37. using proto::exprns_::operator^;
  38. using proto::exprns_::operator<<;
  39. using proto::exprns_::operator>>;
  40. }}
  41. #include <boost/phoenix/operator/detail/undef_operator.hpp>
  42. #endif