C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::next_higher, std::next_lower

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 07 Dec 2024 16:35:17 -0600
On Saturday 7 December 2024 09:23:46 Central Standard Time Charles R Hogg via
Std-Proposals wrote:
> Sometimes I wonder: wouldn't it be more intent-based to provide something
> like `std::next_higher()` and `std::next_lower()`, with a single argument?
> Has this ever been proposed?

Add: next_towards_zero()

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2024-12-07 22:35:26