delorie.com/archives/browse.cgi | search |
From: | Ales DOLECEK <ales_d AT seznam DOT cz> |
Newsgroups: | comp.lang.c++,comp.os.msdos.djgpp,gnu.g++.help |
Subject: | Re: Problem with basic_string |
Date: | Sat, 4 Jan 2003 15:07:39 +0100 |
Organization: | MISTRAL news |
Lines: | 22 |
Message-ID: | <20030104150739.6e14a3d0.ales_d@seznam.cz> |
References: | <av6mgq$cjiq1$1 AT ID-79865 DOT news DOT dfncis DOT de> |
<av6n2q$1ct4$1 AT serv3 DOT vsi DOT ru> | |
<av6p7v$ciff4$1 AT ID-79865 DOT news DOT dfncis DOT de> | |
NNTP-Posting-Host: | r2w69.mistral.cz |
Mime-Version: | 1.0 |
X-Trace: | mrazik2.dkm.cz 1041689260 23236 62.245.86.69 (4 Jan 2003 14:07:40 GMT) |
X-Complaints-To: | news AT mrazik2 DOT dkm DOT cz |
NNTP-Posting-Date: | Sat, 4 Jan 2003 14:07:40 +0000 (UTC) |
X-Newsreader: | Sylpheed version 0.8.8claws (GTK+ 1.2.10; i586-pc-linux-gnu) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Sat, 4 Jan 2003 15:56:55 +0200 "Alex Vinokur" <alexvn AT bigfoot DOT com> wrote: > I intended exactly basic_string<string> bs1; > > basic_string<T> is a template class. > So, I would like to basic_string<string>, basic_string<int>, > basic_string<Any_Class> Here is what STL says about basic_string: The basic_string class represents a Sequence of characters. It contains all the usual operations of a Sequence, and, additionally, it contains standard string operations such as search and concatenation. !! HERE !! vvvvvvvvvvvvvv The basic_string class is parameterized by character type, and by that type's Character Traits. Most of the time, however, there is no need to use the basic_string template directly. The types string and wstring are typedefs for, respectively, basic_string<char> and basic_string<wchar_t>.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |