Boost logo

Boost Users :

Subject: Re: [Boost-users] [STL] Is there a std::abs<>() function?
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-12-23 19:56:05


On Tue, Dec 23, 2008 at 19:34, Max <loadcom_at_[hidden]> wrote:
>
> Yes, there exist several overloads of abs() functions or similar
> but some of them with different name, say fabs, fabsf, etc.
> This make it impossible to use it in generic code.
>

With the C++ headers, they're all available as std::abs (26.5 [lib.c.math]).


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net