forked from boostorg/container
Better use forward declarations and export symbols
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include <boost/container/detail/config_begin.hpp>
|
#include <boost/container/detail/config_begin.hpp>
|
||||||
#include <boost/container/detail/workaround.hpp>
|
#include <boost/container/detail/workaround.hpp>
|
||||||
#include <boost/container/detail/auto_link.hpp>
|
#include <boost/container/detail/auto_link.hpp>
|
||||||
|
#include <boost/container/container_fwd.hpp>
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
@@ -25,10 +26,6 @@ namespace boost {
|
|||||||
namespace container {
|
namespace container {
|
||||||
namespace pmr {
|
namespace pmr {
|
||||||
|
|
||||||
/// @cond
|
|
||||||
class memory_resource;
|
|
||||||
/// @endcond
|
|
||||||
|
|
||||||
//! <b>Returns</b>: A pointer to a static-duration object of a type derived from
|
//! <b>Returns</b>: A pointer to a static-duration object of a type derived from
|
||||||
//! memory_resource that can serve as a resource for allocating memory using
|
//! memory_resource that can serve as a resource for allocating memory using
|
||||||
//! global `operator new` and global `operator delete`. The same value is returned every time this function
|
//! global `operator new` and global `operator delete`. The same value is returned every time this function
|
||||||
|
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
#include <boost/container/detail/config_begin.hpp>
|
||||||
#include <boost/container/detail/workaround.hpp>
|
#include <boost/container/detail/workaround.hpp>
|
||||||
|
#include <boost/container/container_fwd.hpp>
|
||||||
#include <boost/move/detail/type_traits.hpp>
|
#include <boost/move/detail/type_traits.hpp>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
@@ -26,7 +27,7 @@ namespace pmr {
|
|||||||
|
|
||||||
//! The memory_resource class is an abstract interface to an
|
//! The memory_resource class is an abstract interface to an
|
||||||
//! unbounded set of classes encapsulating memory resources.
|
//! unbounded set of classes encapsulating memory resources.
|
||||||
class memory_resource
|
class BOOST_CONTAINER_DECL memory_resource
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// For exposition only
|
// For exposition only
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
#include <boost/container/detail/config_begin.hpp>
|
#include <boost/container/detail/config_begin.hpp>
|
||||||
#include <boost/container/detail/workaround.hpp>
|
#include <boost/container/detail/workaround.hpp>
|
||||||
#include <boost/container/detail/auto_link.hpp>
|
#include <boost/container/detail/auto_link.hpp>
|
||||||
|
#include <boost/container/container_fwd.hpp>
|
||||||
#include <boost/container/pmr/memory_resource.hpp>
|
#include <boost/container/pmr/memory_resource.hpp>
|
||||||
#include <boost/container/detail/block_slist.hpp>
|
#include <boost/container/detail/block_slist.hpp>
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#define BOOST_CONTAINER_SOURCE
|
#define BOOST_CONTAINER_SOURCE
|
||||||
#include <boost/container/pmr/memory_resource.hpp>
|
#include <boost/container/pmr/memory_resource.hpp>
|
||||||
|
#include <boost/container/pmr/global_resource.hpp>
|
||||||
#include <boost/core/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
#include <boost/container/throw_exception.hpp>
|
#include <boost/container/throw_exception.hpp>
|
||||||
#include <boost/container/detail/dlmalloc.hpp> //For global lock
|
#include <boost/container/detail/dlmalloc.hpp> //For global lock
|
||||||
|
@@ -60,7 +60,6 @@ void operator delete[](void *p) BOOST_CONTAINER_DELETE_EXCEPTION_SPECIFIER
|
|||||||
#pragma warning (pop)
|
#pragma warning (pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BOOST_CONTAINER_ASAN
|
|
||||||
#ifndef BOOST_CONTAINER_ASAN
|
#ifndef BOOST_CONTAINER_ASAN
|
||||||
|
|
||||||
void test_new_delete_resource()
|
void test_new_delete_resource()
|
||||||
|
Reference in New Issue
Block a user