![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Performance of find(string,size_t) in string class of STLHello All,
Does any of you know the runtime performance of the following function in string class of STL? size_t find ( const string& str, size_t pos = 0 ) const; Also, it would be great if you have any information on how a string is stored (I think a map is stored as red black tree, so maybe string also is stored the same way??) Regards, n00pster |
|||
|
#2
|
|||
|
|||
Re: Performance of find(string,size_t) in string class of STLQuote:
|
|
#3
|
|||
|
|||
Re: Performance of find(string,size_t) in string class of STLWhat you mean how string is stored ?
|
|
#4
|
|||
|
|||
Re: Performance of find(string,size_t) in string class of STLQuote:
I did google it, but without luck. I thought may be somebody here might already know so that I don't have to dig more. |
|
#5
|
|||
|
|||
Re: Performance of find(string,size_t) in string class of STLQuote:
Quote:
|
|
#6
|
|||
|
|||
Re: Performance of find(string,size_t) in string class of STLQuote:
Oh no, I can't believe I didn't think of this. That was the easiest thing to do. :-) thanks a lot, I checked it and yes you are right without doubt.Quote:
|
|
#7
|
|||
|
|||
Re: Performance of find(string,size_t) in string class of STLQuote:
What kind of open source compiler do ofer source code ? I using dev cpp, code blocks and others also. Thanks. |
|
#8
|
|||
|
|||
Re: Performance of find(string,size_t) in string class of STLQuote:
|
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hard drive/CPU Diagnoses Issues | binarybug | Computer Hardware Forum | 1 | 22-Jan-2007 19:23 |
| Message Class | TransformedBG | C++ Forum | 5 | 29-Nov-2006 21:28 |
| C++ class -- Please help | vnca_1 | C++ Forum | 3 | 14-Jun-2006 12:31 |
| a tester class and then some. | postage | Java Forum | 1 | 06-May-2006 15:48 |
| Help wit my source code compiler errors | Krandygrl00 | C++ Forum | 1 | 06-Jun-2005 08:14 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The