any_collection_fwd.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Copyright 2016-2017 Joaquin M Lopez Munoz.
  2. * Distributed under the Boost Software License, Version 1.0.
  3. * (See accompanying file LICENSE_1_0.txt or copy at
  4. * http://www.boost.org/LICENSE_1_0.txt)
  5. *
  6. * See http://www.boost.org/libs/poly_collection for library home page.
  7. */
  8. #ifndef BOOST_POLY_COLLECTION_ANY_COLLECTION_FWD_HPP
  9. #define BOOST_POLY_COLLECTION_ANY_COLLECTION_FWD_HPP
  10. #if defined(_MSC_VER)
  11. #pragma once
  12. #endif
  13. #include <memory>
  14. namespace boost{
  15. namespace poly_collection{
  16. namespace detail{
  17. template<typename Concept> struct any_model;
  18. }
  19. template<typename Concept>
  20. using any_collection_value_type=
  21. typename detail::any_model<Concept>::value_type;
  22. template<
  23. typename Concept,
  24. typename Allocator=std::allocator<any_collection_value_type<Concept>>
  25. >
  26. class any_collection;
  27. template<typename Concept,typename Allocator>
  28. bool operator==(
  29. const any_collection<Concept,Allocator>& x,
  30. const any_collection<Concept,Allocator>& y);
  31. template<typename Concept,typename Allocator>
  32. bool operator!=(
  33. const any_collection<Concept,Allocator>& x,
  34. const any_collection<Concept,Allocator>& y);
  35. template<typename Concept,typename Allocator>
  36. void swap(
  37. any_collection<Concept,Allocator>& x,any_collection<Concept,Allocator>& y);
  38. } /* namespace poly_collection */
  39. using poly_collection::any_collection;
  40. } /* namespace boost */
  41. #endif