summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-10-06 18:29:18 -0400
committerGravatar Lioncash2019-10-06 18:48:05 -0400
commit9aafb2a277f2fcbfcc881cf4759b66db07ae2e9f (patch)
treef78ccbd7ad9ebd5f4a68a2ece6fcd43abf14517e /src
parentMerge pull request #2942 from ReinUsesLisp/clang-warnings (diff)
downloadyuzu-9aafb2a277f2fcbfcc881cf4759b66db07ae2e9f.tar.gz
yuzu-9aafb2a277f2fcbfcc881cf4759b66db07ae2e9f.tar.xz
yuzu-9aafb2a277f2fcbfcc881cf4759b66db07ae2e9f.zip
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.
Diffstat (limited to '')
-rw-r--r--src/common/alignment.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h
index 88d5d3a65..e24f8b0e6 100644
--- a/src/common/alignment.h
+++ b/src/common/alignment.h
@@ -51,6 +51,11 @@ public:
51 using reference = T&; 51 using reference = T&;
52 using const_reference = const T&; 52 using const_reference = const T&;
53 53
54 using propagate_on_container_copy_assignment = std::true_type;
55 using propagate_on_container_move_assignment = std::true_type;
56 using propagate_on_container_swap = std::true_type;
57 using is_always_equal = std::true_type;
58
54public: 59public:
55 pointer address(reference r) noexcept { 60 pointer address(reference r) noexcept {
56 return std::addressof(r); 61 return std::addressof(r);