diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-20 03:49:54 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-20 03:49:54 +0200 |
commit | febb88efc43ae171cc2880651b0665614c586504 (patch) | |
tree | f0e2dac73ab3c10bb8354ccc793c655265715f75 /src/common/alignment.h | |
parent | Kernel: Address Feedback (diff) | |
download | yuzu-febb88efc43ae171cc2880651b0665614c586504.tar yuzu-febb88efc43ae171cc2880651b0665614c586504.tar.gz yuzu-febb88efc43ae171cc2880651b0665614c586504.tar.bz2 yuzu-febb88efc43ae171cc2880651b0665614c586504.tar.lz yuzu-febb88efc43ae171cc2880651b0665614c586504.tar.xz yuzu-febb88efc43ae171cc2880651b0665614c586504.tar.zst yuzu-febb88efc43ae171cc2880651b0665614c586504.zip |
Diffstat (limited to 'src/common/alignment.h')
-rw-r--r-- | src/common/alignment.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h index 0ce218c60..88d5d3a65 100644 --- a/src/common/alignment.h +++ b/src/common/alignment.h @@ -52,11 +52,11 @@ public: using const_reference = const T&; public: - pointer address(reference r) { + pointer address(reference r) noexcept { return std::addressof(r); } - const_pointer address(const_reference r) const { + const_pointer address(const_reference r) const noexcept { return std::addressof(r); } @@ -82,17 +82,17 @@ public: template <typename T2> struct rebind { - typedef AlignmentAllocator<T2, Align> other; + using other = AlignmentAllocator<T2, Align>; }; - bool operator!=(const AlignmentAllocator<T, Align>& other) const { + bool operator!=(const AlignmentAllocator<T, Align>& other) const noexcept { return !(*this == other); } // Returns true if and only if storage allocated from *this // can be deallocated from other, and vice versa. // Always returns true for stateless allocators. - bool operator==(const AlignmentAllocator<T, Align>& other) const { + bool operator==(const AlignmentAllocator<T, Align>& other) const noexcept { return true; } }; |