mirror of
https://github.com/shadps4-emu/ext-boost.git
synced 2024-11-23 19:39:50 +00:00
88 lines
2.7 KiB
C++
88 lines
2.7 KiB
C++
//////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// (C) Copyright Ion Gaztanaga 2011-2013. 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_ALLOCATOR_SCOPED_ALLOCATOR_FWD_HPP
|
|
#define BOOST_CONTAINER_ALLOCATOR_SCOPED_ALLOCATOR_FWD_HPP
|
|
|
|
//! \file
|
|
//! This header file forward declares boost::container::scoped_allocator_adaptor
|
|
//! and defines the following types:
|
|
|
|
#if defined(_MSC_VER)
|
|
# pragma once
|
|
#endif
|
|
|
|
#include <boost/container/detail/config_begin.hpp>
|
|
#include <boost/container/detail/workaround.hpp>
|
|
|
|
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
#include <boost/container/detail/preprocessor.hpp>
|
|
#include <boost/container/detail/type_traits.hpp>
|
|
#endif
|
|
|
|
namespace boost { namespace container {
|
|
|
|
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
|
|
|
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
|
|
#if !defined(BOOST_CONTAINER_UNIMPLEMENTED_PACK_EXPANSION_TO_FIXED_LIST)
|
|
|
|
template <typename OuterAlloc, typename ...InnerAllocs>
|
|
class scoped_allocator_adaptor;
|
|
|
|
#else // #if !defined(BOOST_CONTAINER_UNIMPLEMENTED_PACK_EXPANSION_TO_FIXED_LIST)
|
|
|
|
template <typename ...InnerAllocs>
|
|
class scoped_allocator_adaptor;
|
|
|
|
template <typename OuterAlloc, typename ...InnerAllocs>
|
|
class scoped_allocator_adaptor<OuterAlloc, InnerAllocs...>;
|
|
|
|
#endif // #if !defined(BOOST_CONTAINER_UNIMPLEMENTED_PACK_EXPANSION_TO_FIXED_LIST)
|
|
|
|
|
|
#else // #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
|
|
template <typename OuterAlloc
|
|
BOOST_PP_ENUM_TRAILING( BOOST_CONTAINER_MAX_CONSTRUCTOR_PARAMETERS
|
|
, BOOST_CONTAINER_PP_TEMPLATE_PARAM_WITH_DEFAULT, container_detail::nat)
|
|
>
|
|
class scoped_allocator_adaptor;
|
|
|
|
#endif
|
|
|
|
#endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
|
|
|
|
//! The allocator_arg_t struct is an empty structure type used as a unique type to
|
|
//! disambiguate constructor and function overloading. Specifically, several types
|
|
//! have constructors with allocator_arg_t as the first argument, immediately followed
|
|
//! by an argument of a type that satisfies the Allocator requirements
|
|
struct allocator_arg_t{};
|
|
|
|
//! A instance of type allocator_arg_t
|
|
//!
|
|
static const allocator_arg_t allocator_arg = allocator_arg_t();
|
|
|
|
template <class T>
|
|
struct constructible_with_allocator_suffix;
|
|
|
|
template <class T>
|
|
struct constructible_with_allocator_prefix;
|
|
|
|
template <typename T, typename Alloc>
|
|
struct uses_allocator;
|
|
|
|
}} // namespace boost { namespace container {
|
|
|
|
#include <boost/container/detail/config_end.hpp>
|
|
|
|
#endif // BOOST_CONTAINER_ALLOCATOR_SCOPED_ALLOCATOR_FWD_HPP
|