////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2005-2014. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/container for documentation. // ////////////////////////////////////////////////////////////////////////////// #ifndef BOOST_CONTAINER_CONTAINER_FWD_HPP #define BOOST_CONTAINER_CONTAINER_FWD_HPP #ifndef BOOST_CONFIG_HPP # include #endif #if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif //! \file //! This header file forward declares the following containers: //! - lslboost::container::vector //! - lslboost::container::stable_vector //! - lslboost::container::static_vector //! - lslboost::container::small_vector //! - lslboost::container::slist //! - lslboost::container::list //! - lslboost::container::set //! - lslboost::container::multiset //! - lslboost::container::map //! - lslboost::container::multimap //! - lslboost::container::flat_set //! - lslboost::container::flat_multiset //! - lslboost::container::flat_map //! - lslboost::container::flat_multimap //! - lslboost::container::basic_string //! - lslboost::container::string //! - lslboost::container::wstring //! //! Forward declares the following allocators: //! - lslboost::container::allocator //! - lslboost::container::node_allocator //! - lslboost::container::adaptive_pool //! //! Forward declares the following polymorphic resource classes: //! - lslboost::container::pmr::memory_resource //! - lslboost::container::pmr::polymorphic_allocator //! - lslboost::container::pmr::monotonic_buffer_resource //! - lslboost::container::pmr::pool_options //! - lslboost::container::pmr::unsynchronized_pool_resource //! - lslboost::container::pmr::synchronized_pool_resource //! //! And finally it defines the following types #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED //Std forward declarations #ifndef BOOST_CONTAINER_DETAIL_STD_FWD_HPP #include #endif namespace lslboost{ namespace intrusive{ namespace detail{ //Create namespace to avoid compilation errors }}} namespace lslboost{ namespace container{ namespace dtl{ namespace bi = lslboost::intrusive; namespace bid = lslboost::intrusive::detail; }}} namespace lslboost{ namespace container{ namespace pmr{ namespace bi = lslboost::intrusive; namespace bid = lslboost::intrusive::detail; }}} #include #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED ////////////////////////////////////////////////////////////////////////////// // Containers ////////////////////////////////////////////////////////////////////////////// namespace lslboost { namespace container { #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED template class new_allocator; template ,class Options = void> class vector; template > class stable_vector; template class static_vector; template < class T, std::size_t N , class Allocator= new_allocator > class small_vector; template > class deque; template > class list; template > class slist; template ,class Allocator = new_allocator ,class Options = void> class set; template ,class Allocator = new_allocator ,class Options = void > class multiset; template ,class Allocator = new_allocator > ,class Options = void > class map; template ,class Allocator = new_allocator > ,class Options = void > class multimap; template ,class Allocator = new_allocator > class flat_set; template ,class Allocator = new_allocator > class flat_multiset; template ,class Allocator = new_allocator > > class flat_map; template ,class Allocator = new_allocator > > class flat_multimap; template ,class Allocator = new_allocator > class basic_string; typedef basic_string ,new_allocator > string; typedef basic_string ,new_allocator > wstring; static const std::size_t ADP_nodes_per_block = 256u; static const std::size_t ADP_max_free_blocks = 2u; static const std::size_t ADP_overhead_percent = 1u; static const std::size_t ADP_only_alignment = 0u; template < class T , std::size_t NodesPerBlock = ADP_nodes_per_block , std::size_t MaxFreeBlocks = ADP_max_free_blocks , std::size_t OverheadPercent = ADP_overhead_percent , unsigned Version = 2 > class adaptive_pool; template < class T , unsigned Version = 2 , unsigned int AllocationDisableMask = 0> class allocator; static const std::size_t NodeAlloc_nodes_per_block = 256u; template < class T , std::size_t NodesPerBlock = NodeAlloc_nodes_per_block , std::size_t Version = 2> class node_allocator; namespace pmr { class memory_resource; template class polymorphic_allocator; class monotonic_buffer_resource; struct pool_options; template class resource_adaptor_imp; class unsynchronized_pool_resource; class synchronized_pool_resource; } //namespace pmr { #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED //! Type used to tag that the input range is //! guaranteed to be ordered struct ordered_range_t {}; //! Value used to tag that the input range is //! guaranteed to be ordered static const ordered_range_t ordered_range = ordered_range_t(); //! Type used to tag that the input range is //! guaranteed to be ordered and unique struct ordered_unique_range_t : public ordered_range_t {}; //! Value used to tag that the input range is //! guaranteed to be ordered and unique static const ordered_unique_range_t ordered_unique_range = ordered_unique_range_t(); //! Type used to tag that the inserted values //! should be default initialized struct default_init_t {}; //! Value used to tag that the inserted values //! should be default initialized static const default_init_t default_init = default_init_t(); #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED //! Type used to tag that the inserted values //! should be value initialized struct value_init_t {}; //! Value used to tag that the inserted values //! should be value initialized static const value_init_t value_init = value_init_t(); namespace container_detail_really_deep_namespace { //Otherwise, gcc issues a warning of previously defined //anonymous_instance and unique_instance struct dummy { dummy() { (void)ordered_range; (void)ordered_unique_range; (void)default_init; } }; } //detail_really_deep_namespace { #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED }} //namespace lslboost { namespace container { #endif //#ifndef BOOST_CONTAINER_CONTAINER_FWD_HPP