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 42d86f7 commit c1cd180Copy full SHA for c1cd180
src/tools/fdsdump/src/aggregator/arenaAllocator.hpp
@@ -5,6 +5,7 @@
5
*/
6
#pragma once
7
8
+#include <common/common.hpp>
9
#include <memory>
10
#include <vector>
11
@@ -20,13 +21,11 @@ static constexpr size_t BLOCK_SIZE = 4 * 1024 * 1024;
20
21
* memory upon destruction.
22
23
class ArenaAllocator {
24
+ DISABLE_COPY_AND_MOVE(ArenaAllocator)
25
+
26
public:
- ArenaAllocator() {}
27
+ ArenaAllocator() = default;
28
- /** @brief Disallow copy constructor. */
- ArenaAllocator(const ArenaAllocator &) = delete;
- /** @brief Disallow move constructor. */
29
- ArenaAllocator(ArenaAllocator &&) = delete;
30
31
/**
32
* @brief Allocate bytes.
0 commit comments