mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
[orbis-kernel] compete kallocator interface
This commit is contained in:
parent
a9d385d424
commit
8ecfc4979c
|
|
@ -15,6 +15,12 @@ void *kalloc(std::size_t size, std::size_t align);
|
|||
void kfree(void *ptr, std::size_t size);
|
||||
template <typename T> struct kallocator {
|
||||
using value_type = T;
|
||||
using size_type = std::size_t;
|
||||
using difference_type = std::ptrdiff_t;
|
||||
using propagate_on_container_move_assignment = std::true_type;
|
||||
|
||||
constexpr kallocator() = default;
|
||||
template <typename U> constexpr kallocator(const kallocator<U> &) noexcept {}
|
||||
|
||||
template <typename U> struct rebind {
|
||||
using other = kallocator<U>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue