9 #ifndef BOOST_DETAIL_ALLOCATOR_UTILITIES_HPP
10 #define BOOST_DETAIL_ALLOCATOR_UTILITIES_HPP
36 template<
typename Type>
49 template<
typename Other>
53 std::allocator<Type>(x)
57 #if defined(BOOST_DINKUMWARE_STDLIB)
62 Type* allocate(std::size_t n,
const void* hint=0)
65 return a.allocate(n,hint);
79 #if defined(BOOST_NO_STD_ALLOCATOR)&&\
80 (defined(BOOST_HAS_PARTIAL_STD_ALLOCATOR)||defined(BOOST_DINKUMWARE_STDLIB))
82 template<
typename Allocator>
83 struct is_partial_std_allocator
92 partial_std_allocator_wrapper<
100 template<
typename Allocator>
110 template<
typename Allocator,
typename Type>
118 template<
typename Allocator>
121 template<
typename Type>
129 template<
typename Allocator,
typename Type>
133 BOOST_NESTED_TEMPLATE result<Type>::other
type;
138 template<
typename Allocator,
typename Type>
141 is_partial_std_allocator<Allocator>::value,
142 partial_std_allocator_rebind_to<Allocator,Type>,
143 compliant_allocator_rebind_to<Allocator,Type>
150 template<
typename Type>
156 #if BOOST_WORKAROUND(BOOST_MSVC,BOOST_TESTED_AT(1500))
161 #pragma warning(push)
162 #pragma warning(disable:4100)
165 template<
typename Type>
169 #if BOOST_WORKAROUND(__SUNPRO_CC,BOOST_TESTED_AT(0x590))
170 const_cast<Type*
>(p)->~Type();
177 #if BOOST_WORKAROUND(BOOST_MSVC,BOOST_TESTED_AT(1500))