Re: [PATCH] libstdc++: Provide ability to query _Sink_iter if writes are discarded.

2025-05-05 Thread Tomasz Kaminski
On Mon, May 5, 2025 at 2:55 PM Tomasz Kamiński wrote: > This patch provides an equality operator between _Sink_iter and > default_sentinel, > that returns true, if any further writes to the _Sink_iter and underlying > _Sink, > will be discared, and thus can be omitted. This operator is implemente

[PATCH] libstdc++: Provide ability to query _Sink_iter if writes are discarded.

2025-05-05 Thread Tomasz Kamiński
This patch provides an equality operator between _Sink_iter and default_sentinel, that returns true, if any further writes to the _Sink_iter and underlying _Sink, will be discared, and thus can be omitted. This operator is implemented in terms new of _M_discarding virtual function in _Sink. Curre