Skip to content

Commit 5147e7a

Browse files
committed
default == and != for alloc
1 parent 0ed10fc commit 5147e7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cp-algo/util/big_alloc.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ namespace cp_algo {
2020
public:
2121
using value_type = T;
2222
template <class U> struct rebind { using other = big_alloc<U, Align>; };
23+
constexpr bool operator==(const big_alloc&) const = default;
24+
constexpr bool operator!=(const big_alloc&) const = default;
2325

2426
big_alloc() noexcept = default;
2527
template <typename U, std::size_t A>

0 commit comments

Comments
 (0)