We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e0fe2 commit a64933dCopy full SHA for a64933d
include/atomic_queue/atomic_queue.h
@@ -68,7 +68,7 @@ ATOMIC_QUEUE_INLINE constexpr unsigned remap_index<0>(unsigned index) noexcept {
68
}
69
70
template<int BITS, class T>
71
-ATOMIC_QUEUE_INLINE static constexpr T& map(T* elements, unsigned index) noexcept {
+ATOMIC_QUEUE_INLINE static constexpr T& map(T* ATOMIC_QUEUE_RESTRICT elements, unsigned index) noexcept {
72
return elements[remap_index<BITS>(index)];
73
74
0 commit comments