queue_container_circular.hpp 981 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2008 Christophe Henry
  2. // henry UNDERSCORE christophe AT hotmail DOT com
  3. // This is an extended version of the state machine available in the boost::mpl library
  4. // Distributed under the same license as the original.
  5. // Copyright for the original version:
  6. // Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
  7. // under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_MSM_BACK_QUEUE_CONTAINER_CIRCULAR_H
  11. #define BOOST_MSM_BACK_QUEUE_CONTAINER_CIRCULAR_H
  12. #include <boost/circular_buffer.hpp>
  13. namespace boost { namespace msm { namespace back
  14. {
  15. struct queue_container_circular
  16. {
  17. typedef int queue_container_policy;
  18. template <class Element>
  19. struct In
  20. {
  21. typedef typename boost::circular_buffer<Element> type;
  22. };
  23. };
  24. } } }//boost::msm::back
  25. #endif //BOOST_MSM_BACK_QUEUE_CONTAINER_CIRCULAR_H