Talk About Network

Google





Programming > C - C++ Learning > Re: concatenate...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 4111 of 4400
Post > Topic >>

Re: concatenate vector of strings

by Jerry Coffin <jcoffin@[EMAIL PROTECTED] > Apr 13, 2008 at 02:10 PM

In article <223827d8-0481-4c24-b4ac-68268f5e79c1
@[EMAIL PROTECTED]
>, umut.tabak@[EMAIL PROTECTED]
 says...

[ ... ]

> back_inserter can be used on a string because it is ok to use
> push_back on string class. To use back_inserter, the container should
> sup****t push_back and strings are also containers with push_back
> member function, right?

Yes and no. std::string _does_ have a push_back member function -- but 
it takes a charT, not an std::string<charT, ...> You can add individual 
character this way, but not entire strings at a time. 

-- 
    Later,
    Jerry.

The universe is a figment of its own imagination.
 




 3 Posts in Topic:
concatenate vector of strings
utab <umut.tabak@[EMAI  2008-04-13 12:40:44 
Re: concatenate vector of strings
Jerry Coffin <jcoffin@  2008-04-13 14:10:37 
Re: concatenate vector of strings
dasjotre <dasjotre@[EM  2008-04-14 05:08:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 9:17:13 PST 2009.