A new WG21 paper is available. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N4318
by Jeremy Turnbull
This document proposes the addition of the
abs_diff()template function to the C++ Standard Library. This function computes the absolute difference between two parameters of a type that supports the
operator-()functions, or other functions of equivalent logic, without computing a logically negative value during function execution.