We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f45695 commit 5cd457cCopy full SHA for 5cd457c
cp-algo/util/bump_alloc.hpp
@@ -8,6 +8,9 @@ namespace cp_algo {
8
static char* buf;
9
static size_t buf_ind;
10
using value_type = T;
11
+ template <class U> struct rebind { using other = bump_alloc<U, max_len>; };
12
+ constexpr bool operator==(const bump_alloc&) const = default;
13
+ constexpr bool operator!=(const bump_alloc&) const = default;
14
bump_alloc() = default;
15
template<class U> bump_alloc(const U&) {}
16
T* allocate(size_t n) {
0 commit comments