const_element_containers.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // Boost.Pointer Container
  3. //
  4. // Copyright Thorsten Ottosen 2009. Use, modification and
  5. // distribution is subject to the Boost Software License, Version
  6. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // For more information, see http://www.boost.org/libs/ptr_container/
  10. //
  11. #include <boost/ptr_container/ptr_container.hpp>
  12. // force instantiation of all members
  13. template class boost::ptr_array<const int, 42>;
  14. template class boost::ptr_array<boost::nullable<const int>, 42>;
  15. template class boost::ptr_deque<const int>;
  16. template class boost::ptr_deque< boost::nullable<const int> >;
  17. template class boost::ptr_list<const int>;
  18. template class boost::ptr_list< boost::nullable<const int> >;
  19. template class boost::ptr_map<int, const int>;
  20. template class boost::ptr_map<int, boost::nullable<const int> >;
  21. template class boost::ptr_vector<const int>;
  22. template class boost::ptr_vector< boost::nullable<const int> >;
  23. //@todo problem with constructor forwarding
  24. //
  25. //template class boost::ptr_unordered_map<int,T>;
  26. // @todo: there seems to be some problems with
  27. // argument passing in circular_buffer
  28. //
  29. //boost::ptr_circular_buffer<T> buffer(32);
  30. //buffer.push_back( new int(42) );
  31. template class boost::ptr_set<const int>;
  32. // @todo: problem with constructor forwarding
  33. //
  34. //template class boost::ptr_unordered_set<T>;