Boost logo

Boost Users :

From: Jim Lear (jim.lear_at_[hidden])
Date: 2005-02-11 10:36:39


I know next to nothing about C++, STL, so forgive my ignorance.  But, couldn't this performance problem be solved by calling a method that concatenates multiple std::strings?  E.g.

a.fastcat(b, c, d, e);  // returns &a

Maybe this is naive, but does every problem require an operator?

Chateauneu Remi wrote:
On Thu, 2005-02-10 at 18:48 +0100, Chateauneu Remi wrote:
    
std::string a = my_special_object() + b + c + d + e ;

      
std::string s1;
s1 << concat () + a + b + c;
std::string s2 = concat () + a + b + c;

If you want to see it, let me know.
    
Yes, thanks ! If you wish, I can send mine (330 lines, 11 k-bytes).
Could we take the best of both, and maybe put it in the string algo lib ?
  
-- 
Jim Lear
(512) 228-5532 (work)
(512) 293-7248 (cell)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net