Template Struct Alloc< SystemAlloc >
Defined in File alloc.hpp
Struct Documentation
-
template<>
struct Alloc<SystemAlloc> Public Functions
- inline VEG_NODISCARD VEG_INLINE auto try_grow_in_place (void *, Layout, usize) const noexcept -> bool
Public Static Functions
- static inline VEG_INLINE void dealloc (RefMut< SystemAlloc >, void *ptr, Layout layout) noexcept
- static inline VEG_NODISCARD VEG_INLINE auto alloc (RefMut< SystemAlloc >, Layout layout) noexcept -> mem::AllocBlock
- static inline VEG_NODISCARD VEG_NO_INLINE auto realloc (RefMut< SystemAlloc >, void *ptr, Layout layout, usize new_size, usize copy_size, RelocFn reloc) noexcept -> mem::AllocBlock
- static inline VEG_NODISCARD VEG_INLINE auto grow (RefMut< SystemAlloc > alloc, void *ptr, Layout layout, usize new_size, RelocFn reloc) noexcept -> mem::AllocBlock
- static inline VEG_NODISCARD VEG_INLINE auto shrink (RefMut< SystemAlloc > alloc, void *ptr, Layout layout, usize new_size, RelocFn reloc) noexcept -> mem::AllocBlock
Public Static Attributes
-
static constexpr usize max_base_align = alignof(std::max_align_t)