mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
alignment: Specify trait definitions within the allocator
Allows containers and other data structures to consider optimizations based off of them. We satisfy all of these requirements anyways.
This commit is contained in:
parent
deecd7f074
commit
9aafb2a277
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@ public:
|
||||||
using reference = T&;
|
using reference = T&;
|
||||||
using const_reference = const T&;
|
using const_reference = const T&;
|
||||||
|
|
||||||
|
using propagate_on_container_copy_assignment = std::true_type;
|
||||||
|
using propagate_on_container_move_assignment = std::true_type;
|
||||||
|
using propagate_on_container_swap = std::true_type;
|
||||||
|
using is_always_equal = std::true_type;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
pointer address(reference r) noexcept {
|
pointer address(reference r) noexcept {
|
||||||
return std::addressof(r);
|
return std::addressof(r);
|
||||||
|
|
Loading…
Reference in a new issue