[Boost-bugs] [Boost C++ Libraries] #8582: Improve string algorithm Stacking

Subject: [Boost-bugs] [Boost C++ Libraries] #8582: Improve string algorithm Stacking
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-17 17:47:12


#8582: Improve string algorithm Stacking
---------------------------------+------------------------------------------
 Reporter: rlogel@… | Owner: marshall
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: string_algo
  Version: Boost 1.55.0 | Severity: Optimization
 Keywords: |
---------------------------------+------------------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8582>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC