Boost logo

Boost :

From: dherring_at_[hidden]
Date: 2008-03-14 12:10:43

On Fri, 14 Mar 2008, Eric Niebler wrote:
> The only other term that I have found that is acceptable for the unary
> plus operator is "unary_plus." That just seems so ... boring. ;-) And a
> little strange to have "negate" and "unary_plus". Blech.
> Is there a mathematician who can tell me if the operation performed by
> the unary plus operator has a name?

Absolute value?

I believe the following names are gaining traction.

   unary binary
+ positive plus
- negative minus

This is reflected in the Itanium C++ ABI name mangling as

   unary binary
+ ps pl
- nv mi

~ Daniel

Boost list run by bdawes at, gregod at, cpdaniel at, john at