9 #ifndef BOOST_SMART_PTR_DETAIL_ARRAY_COUNT_IMPL_HPP
10 #define BOOST_SMART_PTR_DETAIL_ARRAY_COUNT_IMPL_HPP
17 template<
class P,
class A>
24 : allocator(allocator_) {
32 #if !defined(BOOST_NO_CXX11_ALLOCATOR)
33 typedef typename std::allocator_traits<A>::
34 template rebind_alloc<Y> YA;
35 typedef typename std::allocator_traits<A>::
36 template rebind_traits<Y> YT;
38 typedef typename A::template rebind<Y>::other YA;
41 #if !defined(BOOST_NO_CXX11_ALLOCATOR)
43 YT::deallocate(a1,
this, 1);
46 a1.deallocate(
this, 1);
51 return &
reinterpret_cast<char&
>(allocator);
55 return &
reinterpret_cast<char&
>(allocator);