17 #ifndef IOX_UTILS_CONCURRENT_LOCKFREE_QUEUE_BUFFER_HPP
18 #define IOX_UTILS_CONCURRENT_LOCKFREE_QUEUE_BUFFER_HPP
28 template <
typename ElementType, u
int64_t Capacity,
typename index_t = u
int64_t>
40 ElementType& operator[](
const index_t index) noexcept;
42 const ElementType& operator[](
const index_t index)
const noexcept;
44 ElementType* ptr(
const index_t index) noexcept;
46 const ElementType* ptr(
const index_t index)
const noexcept;
48 uint64_t capacity()
const noexcept;
51 using byte_t = uint8_t;
53 alignas(ElementType) byte_t m_buffer[Capacity *
sizeof(ElementType)];
55 ElementType* toPtr(index_t index)
const noexcept;
Definition: buffer.hpp:30
building block to easily create free function for logging in a library context
Definition: lockfree_queue.hpp:28