![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/include/boost/container/ |
Upload File : |
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2015-2015. 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_USES_ALLOCATOR_FWD_HPP #define BOOST_CONTAINER_USES_ALLOCATOR_FWD_HPP #include <boost/container/detail/workaround.hpp> #include <boost/container/detail/std_fwd.hpp> //! \file //! This header forward declares boost::container::constructible_with_allocator_prefix, //! boost::container::constructible_with_allocator_suffix and //! boost::container::uses_allocator. Also defines the following types: namespace boost { namespace container { #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED template <int Dummy = 0> struct std_allocator_arg_holder { static ::std::allocator_arg_t *dummy; }; template <int Dummy> //Silence null-reference compiler warnings ::std::allocator_arg_t *std_allocator_arg_holder<Dummy>::dummy = reinterpret_cast< ::std::allocator_arg_t * >(0x1234); typedef const std::allocator_arg_t & allocator_arg_t; #else //! 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 Allocator requirements typedef unspecified allocator_arg_t; #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED //! The `erased_type` struct is an empty struct that serves as a placeholder for a type //! T in situations where the actual type T is determined at runtime. For example, //! the nested type, `allocator_type`, is an alias for `erased_type` in classes that //! use type-erased allocators. struct erased_type {}; //! A instance of type //! allocator_arg_t static allocator_arg_t allocator_arg = BOOST_CONTAINER_DOC1ST(unspecified, *std_allocator_arg_holder<>::dummy); // @cond template <class T> struct constructible_with_allocator_suffix; template <class T> struct constructible_with_allocator_prefix; template <typename T, typename Allocator> struct uses_allocator; // @endcond }} // namespace boost { namespace container { #endif //BOOST_CONTAINER_USES_ALLOCATOR_HPP