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

2025-05-06 Thread Tomasz Kaminski
On Tue, May 6, 2025 at 2:07 PM Jonathan Wakely wrote: > On Tue, 6 May 2025 at 12:42, Tomasz Kaminski wrote: > > > > > > > > On Tue, May 6, 2025 at 1:34 PM Jonathan Wakely > wrote: > >> > >> On 05/05/25 14:44 +0200, Tomasz Kamiński wrote: > >> >This patch provides an equality operator between _S

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

2025-05-06 Thread Jonathan Wakely
On Tue, 6 May 2025 at 12:42, Tomasz Kaminski wrote: > > > > On Tue, May 6, 2025 at 1:34 PM Jonathan Wakely wrote: >> >> On 05/05/25 14:44 +0200, Tomasz Kamiński wrote: >> >This patch provides an equality operator between _Sink_iter and >> >default_sentinel, >> >that returns true, if any further

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

2025-05-06 Thread Tomasz Kaminski
On Tue, May 6, 2025 at 1:34 PM Jonathan Wakely wrote: > On 05/05/25 14:44 +0200, 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,

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

2025-05-06 Thread Jonathan Wakely
On 05/05/25 14:44 +0200, 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 implemented in terms new

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