|
-
February 7th, 2008, 03:31 AM
#3
Re: std::string - how is this working?
std::basic_string is a template.
std::string is an instantiation of this template, in simplified form (ignoring traits arguments) it boils down to a definition like
Code:
typedef std::basic_string<char> std::string;
std::basic_string::operator== (and thus std::string::operator==) is defined and works as you expect. If MSDN is telling something different, it probably does that to lie about superiority of CString or something along those lines.
Edit: Looks like Paul beat me to an answer.
More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason - including blind stupidity. --W.A.Wulf
Premature optimization is the root of all evil --Donald E. Knuth
Please read Information on posting before posting, especially the info on using [code] tags.
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
|