[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppCommaOperator
Avoid overloading ,.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppCommaOperator
(C++) , operator
The comma operator enables to do multiple statements.int a = 1, b = 2, c = 3;
Avoid overloading ,.
'Comma operator' links
Reference
- Herb Sutter and Andrei Alexandrescu. C++ coding standards: 101 rules, guidelines, and best practices. ISBN: 0-32-111358-6, Item 30: Avoid overloading &&, || or , (comma).
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
