Ferdi265
1a8b098ed0
ring-buffer-iterator: fix postfix increment/decrement
...
this silently did the wrong thing on g++ (precedence of postfix ++/--)
and didn't compile on clang++. The correct solution is to
prefix-increment, which has no precedence issues and calls the correct
function. Postfix-increment with correct precedence would have resulted
in a stack overflow anyway.
2025-05-12 15:20:33 +02:00
Ferdinand Bachmann
5a6309dc28
ring_buffer_iterator: add it1 - it2 operator
2021-03-10 13:46:27 +01:00
Ferdinand Bachmann
795a4c3be7
ring_buffer_iterator: whitespace changes
2021-03-10 13:46:07 +01:00
Ferdinand Bachmann
28d44160f3
fix indentation
2020-04-22 17:05:55 +02:00
Ferdinand Bachmann
1364f08e1f
basic_ring_buffer: allow to move construct from wrapped container type
2020-04-22 15:54:38 +02:00
Ferdinand Bachmann
f1562b7960
make basic_ring_buffer fulfull its own template parameter requirements
2020-04-22 15:52:07 +02:00
Ferdinand Bachmann
7c910b79e5
also fix pointer to ref conversion for non-const iterators
2020-04-18 14:37:52 +02:00
feedc0de
4a9095aee7
Fixed pointer to ref conversion
2020-04-18 14:28:27 +02:00
Ferdinand Bachmann
47f3737fb4
fix ring-buffer for simple constexpr usage
2020-04-18 13:46:17 +02:00
Ferdinand Bachmann
76896b2fe0
add const overload for begin
2020-04-18 13:32:22 +02:00
Ferdinand Bachmann
9f289b9242
fix iterator constructor noexceptness
2020-04-18 13:17:04 +02:00
Ferdinand Bachmann
8cfb62f315
make functions constexpr or noexcept when possible
2020-04-18 13:11:55 +02:00
Ferdinand Bachmann
5feb3f4f60
add feature detection machinery
2020-04-18 12:39:58 +02:00
Ferdinand Bachmann
ce9d000673
initial import
2020-04-18 11:36:18 +02:00