1 #ifndef SIPLASPLAS_ALLOCATOR_DETAIL_EMBEDDED_ALLOCATOR_HPP 2 #define SIPLASPLAS_ALLOCATOR_DETAIL_EMBEDDED_ALLOCATOR_HPP 4 #include <siplasplas/utility/memory_manip.hpp> 5 #include <siplasplas/allocator/export.hpp> 17 char* metadata_begin()
const;
18 char* metadata_end()
const;
20 std::size_t storage_size()
const;
21 std::size_t metadata_length()
const;
26 return{ metadata_begin() + begin };
30 T metadata(std::size_t begin)
const 32 return detail::read_at<T>(metadata_begin() +
begin);
35 bool belongs_to_storage(
void* pointer)
const;
37 std::string dump()
const;
44 #endif // SIPLASPLAS_ALLOCATOR_DETAIL_EMBEDDED_ALLOCATOR_HPP Definition: messaging.hpp:8
constexpr auto end(const Sequence &sequence)
Returns an iterator pointing to the end of a sequence.
Definition: algorithm.hpp:86
constexpr auto begin(const Sequence &sequence)
Returns an iterator pointing to the beginning of a sequence.
Definition: algorithm.hpp:62
Definition: embedded_allocator.hpp:10
Definition: memory_manip.hpp:410