123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef BOOST_LOCKFREE_POLICIES_HPP_INCLUDED
- #define BOOST_LOCKFREE_POLICIES_HPP_INCLUDED
- #include <boost/parameter/template_keyword.hpp>
- #include <boost/mpl/bool.hpp>
- #include <boost/mpl/size_t.hpp>
- namespace boost {
- namespace lockfree {
- #ifndef BOOST_DOXYGEN_INVOKED
- namespace tag { struct allocator ; }
- namespace tag { struct fixed_sized; }
- namespace tag { struct capacity; }
- #endif
- template <bool IsFixedSized>
- struct fixed_sized:
- boost::parameter::template_keyword<tag::fixed_sized, boost::mpl::bool_<IsFixedSized> >
- {};
- template <size_t Size>
- struct capacity:
- boost::parameter::template_keyword<tag::capacity, boost::mpl::size_t<Size> >
- {};
- template <class Alloc>
- struct allocator:
- boost::parameter::template_keyword<tag::allocator, Alloc>
- {};
- }
- }
- #endif
|