aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/container/patches/mobile.patch
blob: 0e95f0cafdd7ade210e5e2d719082ee153804673 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/include/boost/container/pmr/polymorphic_allocator.hpp	(index)
+++ b/include/boost/container/pmr/polymorphic_allocator.hpp	(working tree)
@@ -39,6 +39,17 @@ class polymorphic_allocator
 {
    public:
    typedef T value_type;
+   typedef value_type* pointer;
+   typedef const value_type* const_pointer;
+   typedef value_type& reference;
+   typedef const value_type& const_reference;
+   typedef std::size_t size_type;
+   typedef std::ptrdiff_t difference_type;
+
+   template <typename U>
+   struct rebind {
+      typedef ::boost::container::pmr::polymorphic_allocator<U> other;
+   };
 
    //! <b>Effects</b>: Sets m_resource to
    //! `get_default_resource()`.