Google


   


You are here: CodeIdol.com > C++ > C++ Coding Standards: 101 Rules, Guidelines, and Best Practices > Use Const Proactively

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

C++ Coding Standards: 101 Rules, Guidelines, and Best Practices



15. SummaryDiscussionExamplesReferences...



const is your friend: Immutable values are easier to understand, track, and reason about, so prefer constants over variables wherever it is sensible and make...

read more: Summary


Constants simplify code because you only have to look at where the constant is defined to know its value everywhere. Consider this code: void Fun( vector<int>&...

read more: Discussion


Example: Avoid const pass-by-value function parameters in function declarations. The following two declarations are exactly equivalent: void Fun( int x ); void Fun( const int x );...

read more: Examples


[Allison98] §10• [Cline99] §14.• [Dewhurst03] §6, §31-32, §82 • [Keffer95] pp. • [Koenig97] §4 • [Lakos96] §9.1.6, §9.• [Meyers97] §21 • [Murray93] §• [Stroustrup00] §7.2,...

read more: References

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

You are here: CodeIdol.com > C++ > C++ Coding Standards: 101 Rules, Guidelines, and Best Practices > Use Const Proactively


ADBRITE ads links
   
Related tags







Popular Categories
Unix books and guides

AJAX popular information
C# language guides
Windows books and cookbooks

.......








Business Key Top Sites

be number one
rate your site


Грузовые авиа перевозки. агентство недвижимости МИАН телефонизирует новостройки

    С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.

    Русский Polski Francais Deutsch
    support sitemap terms

© CodeIdol Labs, 2007 - 2009