@@ -60,34 +60,34 @@ namespace dice::template_library {
60
60
pool<bucket_sizes...> *pool_;
61
61
62
62
public:
63
- explicit constexpr pool_allocator (pool<bucket_sizes...> &parent_pool) noexcept
63
+ explicit pool_allocator (pool<bucket_sizes...> &parent_pool) noexcept
64
64
: pool_{&parent_pool} {
65
65
}
66
66
67
- constexpr pool_allocator (pool_allocator const &other) noexcept = default;
68
- constexpr pool_allocator (pool_allocator &&other) noexcept = default;
69
- constexpr pool_allocator &operator =(pool_allocator const &other) noexcept = default ;
70
- constexpr pool_allocator &operator =(pool_allocator &&other) noexcept = default ;
71
- constexpr ~pool_allocator () noexcept = default ;
67
+ pool_allocator (pool_allocator const &other) noexcept = default ;
68
+ pool_allocator (pool_allocator &&other) noexcept = default ;
69
+ pool_allocator &operator =(pool_allocator const &other) noexcept = default ;
70
+ pool_allocator &operator =(pool_allocator &&other) noexcept = default ;
71
+ ~pool_allocator () noexcept = default ;
72
72
73
73
template <typename U>
74
- constexpr pool_allocator (pool_allocator<U, bucket_sizes...> const &other) noexcept
74
+ pool_allocator (pool_allocator<U, bucket_sizes...> const &other) noexcept
75
75
: pool_{other.pool_ } {
76
76
}
77
77
78
- constexpr pointer allocate (size_t n) {
78
+ pointer allocate (size_t n) {
79
79
return static_cast <pointer>(pool_->allocate (sizeof (T) * n));
80
80
}
81
81
82
- constexpr void deallocate (pointer ptr, size_t n) {
82
+ void deallocate (pointer ptr, size_t n) {
83
83
pool_->deallocate (ptr, sizeof (T) * n);
84
84
}
85
85
86
- constexpr pool_allocator select_on_container_copy_construction () const {
86
+ pool_allocator select_on_container_copy_construction () const {
87
87
return pool_allocator{*pool_};
88
88
}
89
89
90
- friend constexpr void swap (pool_allocator &lhs, pool_allocator &rhs) noexcept {
90
+ friend void swap (pool_allocator &lhs, pool_allocator &rhs) noexcept {
91
91
using std::swap;
92
92
swap (lhs.pool_ , rhs.pool_ );
93
93
}
0 commit comments