From: Howard Hinnant (hinnant_at_[hidden])
Date: 2000-07-25 11:43:42
Reid Sweatman wrote on 7/25/2000 11:51 AM
>Probably missing the point here, but I always thought that one was called
>the ternary operator, mainly because it's the only native C construct that
>has three terms. Not that that helps the present discussion any.
>> David Abrahams wrote on 7/23/2000 5:28 PM
>> >What is the ?: operator called in C/C++?
From the standard:
5.16 - Conditional operator [expr.cond]
logical-or-expression ? expression : assignment-expression
No doubt that it is also the one and only ternary operator as well.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk