Opened 9 years ago

Last modified 9 years ago

#8582 new Feature Requests

Improve string algorithm Stacking

Reported by: rlogel@… Owned by: Marshall Clow
Milestone: To Be Determined Component: string_algo
Version: Boost 1.55.0 Severity: Optimization
Keywords: Cc: rlogel@…

Description

The documentation for the string algorithm library states:

"Algorithm stacking: Copy versions return a transformed input as a result, thus allow a simple chaining of transformations within one expression (i.e. one can write trim_copy(to_upper_copy(s))). Mutable versions have void return, to avoid misuse. "

I'm not sure what they mean by misuse but if all of the mutable version returned a reference to the object you are manipulating then you could chain them together without paying the price of copying the string over and over again.

Change History (1)

comment:1 by Ray Logel <rlogel@…>, 9 years ago

Cc: rlogel@… added
Note: See TracTickets for help on using tickets.