vector reserve() and clear()336 (11/2/2006 9:43:04 PM) comp.lang.c++ vector buf_string; buf_string.reserve(256); vector buf_mat_prices; buf_mat_prices.reserve(1000); During loops I fill the vectors and then I empty them with commands like buf_string.clear(); buf_mat_pri... pknews(33)
STL list related925 (11/8/2006 4:52:41 PM) comp.lang.c++ Hi, why cant a list be implicitly castable to list? Any alternatives other than global operators? thanks in advance, Naren. ... narendranath.thadkal(4)
newbie: #define with Italian characters (ASCII > 128)719 (11/10/2006 2:08:22 AM) comp.lang.c++ Hello, I'm doing a #define STR_YES Si Where Si has that special italian accent mark in it. Basically its extended ascii 236 (the i with the sloping accent). If I put the #define in the same file and try to... dgrdinh(7)
std::vector and size_t323 (11/10/2006 11:17:10 AM) comp.lang.c++ Is there a way of making a std::vector, or indeed any other std container that is indexed by something larger than a 'size_t' i.e. an unsigned long. Thanks, Jon Rea ... jon.rea(23)
trying to concat a filename (newbie)438 (11/13/2006 6:44:12 AM) comp.lang.c++ I was trying to build a list of input files using users input ie #>program 1 2 3 4 5 6 7 8 9 10 11 12 in the program I wanted name generated input filenames char beginning[64]="count",endding[64]=".txt", ou... merrittr(73)
export: should I want it?416 (12/3/2006 7:29:03 AM) comp.lang.c++ exported Templates Last updated Sep 6, 2006. exported Templates The separate compilation model enables us to define functions, types and objects in one translation unit and refer to them from other translat... chattengau(616)
-std::map.size() reported wrong?545 (12/4/2006 11:29:31 AM) comp.lang.c++ Expected output of this program is: 1 -1 -1 -1 Using Microsoft Visual C++ .net 2003 actual output is: 1 4294967295 4294967295 4294967295 Can someone explain why to me? #include #include #include std::map... tazmaster(2359)
std::vector<bool> specialisation performance issue819 (12/8/2006 1:24:16 PM) comp.lang.c++ On my platform I find that the std::vector specialisation incurs a significant performance hit in some circumstances (when compared, say, to std::vector programmed analagously). Is it possible to "spoof" std::v... me4(18699)
ORA-01480 problem529 (12/18/2006 6:47:44 AM) comp.lang.c++ Hello, I have the following piece of code in my server written in C++ (CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-12 2002/12/16) ProC++ (Pro*C/C++: Release 8.1.7.4.0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... v.r.sankar(14)