5#ifndef INCLUDE_CPPGC_CUSTOM_SPACE_H_
6#define INCLUDE_CPPGC_CUSTOM_SPACE_H_
48template <
typename ConcreteCustomSpace>
58 return ConcreteCustomSpace::kSpaceIndex;
61 return ConcreteCustomSpace::kSupportsCompaction;
68template <
typename T,
typename =
void>
75template <
typename CustomSpace>
83 static constexpr bool value =
false;
Definition: custom-space.h:24
virtual ~CustomSpaceBase()=default
virtual CustomSpaceIndex GetCustomSpaceIndex() const =0
virtual bool IsCompactable() const =0
Definition: custom-space.h:49
static constexpr bool kSupportsCompaction
Definition: custom-space.h:55
CustomSpaceIndex GetCustomSpaceIndex() const final
Definition: custom-space.h:57
bool IsCompactable() const final
Definition: custom-space.h:60
Definition: allocation.h:38
Definition: custom-space.h:15
size_t value
Definition: custom-space.h:17
constexpr CustomSpaceIndex(size_t value)
Definition: custom-space.h:16
Definition: custom-space.h:69
void Space
Definition: custom-space.h:70
Definition: custom-space.h:76
static constexpr bool value
Definition: custom-space.h:77
Definition: custom-space.h:87
static constexpr bool value
Definition: custom-space.h:89