Examples
Team LiB
Previous Section Next Section

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].)

    Team LiB
    Previous Section Next Section