poolfwd.hpp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // Copyright (C) 2000, 2001 Stephen Cleary
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See
  4. // accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // See http://www.boost.org for updates, documentation, and revision history.
  8. #ifndef BOOST_POOLFWD_HPP
  9. #define BOOST_POOLFWD_HPP
  10. /*!
  11. \file
  12. \brief Forward declarations of all public (non-implemention) classes.
  13. */
  14. #include <boost/config.hpp> // for workarounds
  15. // std::size_t
  16. #include <cstddef>
  17. // boost::details::pool::default_mutex
  18. #include <boost/pool/detail/mutex.hpp>
  19. namespace boost {
  20. //
  21. // Location: <boost/pool/simple_segregated_storage.hpp>
  22. //
  23. template <typename SizeType = std::size_t>
  24. class simple_segregated_storage;
  25. //
  26. // Location: <boost/pool/pool.hpp>
  27. //
  28. struct default_user_allocator_new_delete;
  29. struct default_user_allocator_malloc_free;
  30. template <typename UserAllocator = default_user_allocator_new_delete>
  31. class pool;
  32. //
  33. // Location: <boost/pool/object_pool.hpp>
  34. //
  35. template <typename T, typename UserAllocator = default_user_allocator_new_delete>
  36. class object_pool;
  37. //
  38. // Location: <boost/pool/singleton_pool.hpp>
  39. //
  40. template <typename Tag, unsigned RequestedSize,
  41. typename UserAllocator = default_user_allocator_new_delete,
  42. typename Mutex = details::pool::default_mutex,
  43. unsigned NextSize = 32,
  44. unsigned MaxSize = 0>
  45. class singleton_pool;
  46. //
  47. // Location: <boost/pool/pool_alloc.hpp>
  48. //
  49. struct pool_allocator_tag;
  50. template <typename T,
  51. typename UserAllocator = default_user_allocator_new_delete,
  52. typename Mutex = details::pool::default_mutex,
  53. unsigned NextSize = 32,
  54. unsigned MaxSize = 0>
  55. class pool_allocator;
  56. struct fast_pool_allocator_tag;
  57. template <typename T,
  58. typename UserAllocator = default_user_allocator_new_delete,
  59. typename Mutex = details::pool::default_mutex,
  60. unsigned NextSize = 32,
  61. unsigned MaxSize = 0>
  62. class fast_pool_allocator;
  63. } // namespace boost
  64. #endif