Google


   


You are here: CodeIdol.com > C++ > C++ Coding Standards: 101 Rules, Guidelines, and Best Practices > Prefer Writing Nonmember Nonfriend Functions

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



44. SummaryDiscussionExamplesReferences...



Avoid membership fees: Where possible, prefer making functions nonmember nonfriends....

read more: Summary


Nonmember nonfriend functions improve encapsulation by minimizing dependencies: The body of the function cannot come to depend on the nonpublic members of the class (see...

read more: Discussion


Example: basic_string. The standard basic_string is a needlessly monolithic class with member functionsof which 71 could be written as nonmember nonfriends without loss of efficiency....

read more: Examples


[Lakos96] §3.6.1, §9.• [McConnell93] §5.• [Murray93] §• [Meyers00] • [Stroustrup00] §10.3.2, §11.3.2, §11.3.5, §11.5.2, §21.2.• [Sutter00] §20 • [Sutter04] §37-40...

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 > Prefer Writing Nonmember Nonfriend Functions


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