5#ifndef INCLUDE_CPPGC_CUSTOM_SPACE_H_
6#define INCLUDE_CPPGC_CUSTOM_SPACE_H_
13
14
21
22
23
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48template <
typename ConcreteCustomSpace>
52
53
54
58 return ConcreteCustomSpace::kSpaceIndex;
61 return ConcreteCustomSpace::kSupportsCompaction;
66
67
68template <
typename T,
typename =
void>
75template <
typename CustomSpace>
77 static constexpr bool value = CustomSpace::kSupportsCompaction;
83 static constexpr bool value =
false;
virtual bool IsCompactable() const =0
virtual ~CustomSpaceBase()=default
virtual CustomSpaceIndex GetCustomSpaceIndex() const =0
bool IsCompactable() const final
static constexpr bool kSupportsCompaction
CustomSpaceIndex GetCustomSpaceIndex() const final
constexpr CustomSpaceIndex(size_t value)
static constexpr bool value
static constexpr bool value
static constexpr bool value