Re: string v.s. basic_string

Tech-Archive recommends: Speed Up your PC by fixing your registry



George wrote:
Hello everyone,


I would like to learn some experiences about when should we use std::basic_string and when should we use std::string?

I learned some Hello World level samples and now want to listen to your practical experiences. :-)

George:

std::string is just a typedef

namespace std
{
typedef basic_string<char> string;
typedef std::basic_string<wchar_t) wstring;
}

Normally you just use std::string or std::wstring.

--
David Wilkinson
Visual C++ MVP
.



Relevant Pages

  • Re: I saw Brokeback Mtn
    ... george on 11 january: ... I don't buy the it's not really gay because it's ... enormous amount of using your own experiences to read ... meanings of bits of behavior across different social groups and social ...
    (soc.motss)
  • Re: Macy$ parade Band$ $ Drum corp$ Line up
    ... > My name is George or Mr. Maloney if you prefer. ... >> Unless you can shut her up with your personal experiences on tomorrow's ... > I've been to the parade four times. ... > PLEASE don't try to speak for EVERYONE or anyone else. ...
    (rec.arts.marching.drumcorps)
  • Re: C# log component
    ... George wrote: ... Do you have any experiences of using TextWriterTraceListener? ... You have to to the "ringbuffer" writing yourself. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Using a DI Box and preamp
    ... >>> Let's just agree that we've had different experiences and we have ... >>> differing opinions, George. ... are you still working with SLS speakz? ... John it is 1/4 the gear and 3/4 your skill ...
    (rec.music.makers.guitar.acoustic)
  • Re: MVPs
    ... We all have different experiences with hardware and software. ... MVP, and you got all pissy about it, instead of just admitting fault ... The only one I recommend is System Mechanic, ... others NOT to use registry cleaners, that should be telling in itself. ...
    (microsoft.public.windowsxp.help_and_support)