-
April 28th, 2011, 04:09 PM
#1
string class
Is string class a container too ?
As I see, it also has begin and end iterator/
Thankyou
-
April 28th, 2011, 04:22 PM
#2
Re: string class
std::string is really just a typedef for std::basic_string<char>
-
April 29th, 2011, 07:20 AM
#3
Re: string class
I believe std::string meets most of the requirements for a container. I'm not sure it meets all of them.
-
April 29th, 2011, 10:43 AM
#4
Re: string class
From the 2003 standard:
21.3 paragraph 2
The class template basic_string conforms to the requirements of a Sequence, as specified in (23.1.1).
Additionally, because the iterators supported by basic_string are random access iterators (24.1.5),
basic_string conforms to the the requirements of a Reversible Container, as specified in (23.1).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|