summaryrefslogtreecommitdiffstats
path: root/share/man/man7/operator.7
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-04-08 20:20:19 +0000
committered <ed@FreeBSD.org>2009-04-08 20:20:19 +0000
commitda6f64f1ca2e012e726eff8495aec3861030241d (patch)
tree28cc21dd0678c48fb669bfde7393019496eb8239 /share/man/man7/operator.7
parent93a9ed75b449eec73423063b8873553e59fc5a92 (diff)
downloadFreeBSD-src-da6f64f1ca2e012e726eff8495aec3861030241d.zip
FreeBSD-src-da6f64f1ca2e012e726eff8495aec3861030241d.tar.gz
Add C++ operators to operator(7) manual page.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Diffstat (limited to 'share/man/man7/operator.7')
-rw-r--r--share/man/man7/operator.712
1 files changed, 7 insertions, 5 deletions
diff --git a/share/man/man7/operator.7 b/share/man/man7/operator.7
index b092bef..e7c35cd 100644
--- a/share/man/man7/operator.7
+++ b/share/man/man7/operator.7
@@ -32,19 +32,20 @@
.\" @(#)operator.7 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd January 22, 2003
+.Dd April 8, 2009
.Dt OPERATOR 7
.Os
.Sh NAME
.Nm operator
-.Nd C operator precedence and order of evaluation
+.Nd C and C++ operator precedence and order of evaluation
.Sh DESCRIPTION
.Bd -ragged -offset indent -compact
-.Bl -column "= += -= *= /= %= <<= >>= &= ^= |="
+.Bl -column "! ~ ++ -- - (type) * & sizeof new delete"
.It Sy "Operator Associativity"
.It "-------- -------------"
.It "() [] -> . left to right"
-.It "! ~ ++ -- - (type) * & sizeof right to left"
+.It "! ~ ++ -- - (type) * & sizeof new delete right to left"
+.It "->* .* left to right
.It "* / % left to right"
.It "+ - left to right"
.It "<< >> left to right"
@@ -56,7 +57,8 @@
.It "&& left to right"
.It "|| left to right"
.It "?: right to left"
-.It "= += -= *= /= %= <<= >>= &= ^= |= right to left"
+.It "= += -= *= /= %= <<= >>= &= ^= |= throw right to left"
+.It "?: (C++, third operand) right to left"
.It ", left to right"
.El
.Ed
OpenPOWER on IntegriCloud