C++.Coding.Standards.1918.Rules.Guidelines [Electronic resources]

Herb Sutter, Andrei Alexandrescu

نسخه متنی -صفحه : 521/ 239
نمايش فراداده

Examples

Example:

basic_string. The standard

basic_string is a needlessly monolithic class with 103 member functionsof which 71 could be written as nonmember nonfriends without loss of efficiency. Many of them duplicate functionality already available as algorithms, or are themselves algorithms that would be useful more widely if they weren't buried inside

basic_string . (See Items 5 and 32, and [Sutter04].)