function_collection_fwd.hpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* Copyright 2016 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_FUNCTION_COLLECTION_FWD_HPP
  9. #define BOOST_POLY_COLLECTION_FUNCTION_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 Signature> struct function_model;
  18. }
  19. template<typename Signature>
  20. using function_collection_value_type=
  21. typename detail::function_model<Signature>::value_type;
  22. template<
  23. typename Signature,
  24. typename Allocator=std::allocator<function_collection_value_type<Signature>>
  25. >
  26. class function_collection;
  27. template<typename Signature,typename Allocator>
  28. bool operator==(
  29. const function_collection<Signature,Allocator>& x,
  30. const function_collection<Signature,Allocator>& y);
  31. template<typename Signature,typename Allocator>
  32. bool operator!=(
  33. const function_collection<Signature,Allocator>& x,
  34. const function_collection<Signature,Allocator>& y);
  35. template<typename Signature,typename Allocator>
  36. void swap(
  37. function_collection<Signature,Allocator>& x,
  38. function_collection<Signature,Allocator>& y);
  39. } /* namespace poly_collection */
  40. using poly_collection::function_collection;
  41. } /* namespace boost */
  42. #endif