svn commit: r190855 - in head/share: man/man7 misc

Ed Schouten ed at FreeBSD.org
Wed Apr 8 13:20:21 PDT 2009


Author: ed
Date: Wed Apr  8 20:20:19 2009
New Revision: 190855
URL: http://svn.freebsd.org/changeset/base/190855

Log:
  Add C++ operators to operator(7) manual page.
  
  Submitted by:	Christoph Mallon <christoph.mallon at gmx.de>

Modified:
  head/share/man/man7/operator.7
  head/share/misc/operator

Modified: head/share/man/man7/operator.7
==============================================================================
--- head/share/man/man7/operator.7	Wed Apr  8 19:10:20 2009	(r190854)
+++ head/share/man/man7/operator.7	Wed Apr  8 20:20:19 2009	(r190855)
@@ -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

Modified: head/share/misc/operator
==============================================================================
--- head/share/misc/operator	Wed Apr  8 19:10:20 2009	(r190854)
+++ head/share/misc/operator	Wed Apr  8 20:20:19 2009	(r190855)
@@ -1,19 +1,21 @@
-Operator				Associativity
------------------------------------------------------
-() [] -> .				left to right
-! ~ ++ -- - (type) * & sizeof		right to left
-* / %					left to right
-+ -					left to right
-<< >>					left to right
-< <= > >=				left to right
-== !=					left to right
-&					left to right
-^					left to right
-|					left to right
-&&					left to right
-||					left to right
-?:					right to left
-= += -= *= /= %= <<= >>= &= ^= |=	right to left
-,					left to right
+Operator					Associativity
+-------------------------------------------------------------
+() [] -> .					left to right
+! ~ ++ -- - (type) * & sizeof new delete	right to left
+->* .*						left to right
+* / %						left to right
++ -						left to right
+<< >>						left to right
+< <= > >=					left to right
+== !=						left to right
+&						left to right
+^						left to right
+|						left to right
+&&						left to right
+||						left to right
+?:						right to left
+= += -= *= /= %= <<= >>= &= ^= |= throw		right to left
+?: (C++, third operand)				right to left
+,						left to right
 
 $FreeBSD$


More information about the svn-src-head mailing list