[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
startpage » ImaginaryNumber » CSharp-And-ASP-DotNet » algorithm » BeginnersGuideToVB » CppCompiler » TurboCpp2006 » privacy » pointer » CppOperator
Also a keyword used for operator overloading. Preserve natural semantics for overloaded operators [2]. Consider overloading to avoid implicit type conversions [3].
List of overloadable operators:
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
startpage » ImaginaryNumber » CSharp-And-ASP-DotNet » algorithm » BeginnersGuideToVB » CppCompiler » TurboCpp2006 » privacy » pointer » CppOperator
(C++) operator
Definition: A conventional notation for built-in operation, such as +, *, and & [1].Also a keyword used for operator overloading. Preserve natural semantics for overloaded operators [2]. Consider overloading to avoid implicit type conversions [3].
List of overloadable operators:
- &, bitwise and operator
- |, bitwise or operator
- ^, bitwise xor operator
- ~, bitwise not operator
- ,, comma operator
- --, decrement operator
- delete
- delete[]
- /, divide operator
- /=, divide assign operator
- =, assign operator
- ==, equal operator
- >, greater than operator
- >=, greater than or equal operator
- ++, increment operator
- <, less than operator
- <=, less than or equal operator
- &&, logical and operator
- ||, logical or operator
- ., member access operator
- .*
- ->, member access operator
- ->*
- -, minus operator
- -=
- %, modulus operator
- *, multiply operator
- *=, multiply assign operator
- new operator
- ?new[] operator
- !=, not equal operator
- +, plus operator
- +=, plus assign operator
- ::, scope operator
- ?:, questionmark colon operator
- [], index operator
'operator' links
References
- 1) http://www.research.att.com/~bs/glossary.html
- 2) Herb Sutter and Andrei Alexandrescu. C++ coding standards: 101 rules, guidelines, and best practices. ISBN: 0-32-111358-6, Item 26: Preserve natural semantics for overloaded operators
- 3) Herb Sutter and Andrei Alexandrescu. C++ coding standards: 101 rules, guidelines, and best practices. ISBN: 0-32-111358-6, Item 29: Consider overloading to avoid implicit type conversions.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
