Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions runtime-common/core/allocator/platform-allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#pragma once

#include <cstddef>
#include <type_traits>

#include "runtime-common/core/allocator/runtime-allocator.h"

Expand All @@ -13,6 +14,9 @@ namespace kphp::memory {
template<typename T>
struct platform_allocator {
using value_type = T;
using propagate_on_container_copy_assignment = std::true_type;
using propagate_on_container_move_assignment = std::true_type;
using is_always_equal = std::true_type;

platform_allocator() noexcept = default;

Expand Down
4 changes: 4 additions & 0 deletions runtime-common/core/allocator/script-allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#pragma once

#include <cstddef>
#include <type_traits>

#include "runtime-common/core/allocator/runtime-allocator.h"

Expand All @@ -15,6 +16,9 @@ namespace memory {
template<typename T>
struct script_allocator {
using value_type = T;
using propagate_on_container_copy_assignment = std::true_type;
using propagate_on_container_move_assignment = std::true_type;
using is_always_equal = std::true_type;

script_allocator() noexcept = default;

Expand Down
Loading