Boost logo

Boost Users :

From: Nicholas Cardi (nick_at_[hidden])
Date: 2005-02-11 11:02:09


Jim,
    I don't show a fatcat method in my stl. I am on Windows XP with VS 2003.
    is this part of the standard string or boost library?

  _____

From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Jim Lear
Sent: Friday, February 11, 2005 10:37 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Concatenation of many std::string

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