473,587 Members | 2,527 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web page for STL container performace requirements?

I know there's a lot of literature around ... however I'm usually mobile
and do not want to carry all the books with me. Therefore my question:

Does anybody a web page that provides the performance requirements
for operations on STL containers?

Many thanks in advance, Stephan
Jul 19 '05 #1
2 1913
"Stephan Br?nnimann" <br****@hotmail .com> wrote...
I know there's a lot of literature around ... however I'm usually mobile
and do not want to carry all the books with me. Therefore my question:

Does anybody a web page that provides the performance requirements
for operations on STL containers?


Get the electronic version of the Standard. It contains the requirements
you're talking about.
Jul 19 '05 #2
"Victor Bazarov" <v.********@com Acast.net> wrote in message
news:ukNrb.1200 21$ao4.370291@a ttbi_s51...
"Stephan Br?nnimann" <br****@hotmail .com> wrote...
I know there's a lot of literature around ... however I'm usually mobile
and do not want to carry all the books with me. Therefore my question:

Does anybody a web page that provides the performance requirements
for operations on STL containers?


Get the electronic version of the Standard. It contains the requirements
you're talking about.


You might also memorize this short table:

vector deque list set/map

insert/erase N N constant log N

prepend (N) constant constant (log N)

find(val) (N) (N) (N) log N

X[N] constant constant (N) (N)

pointers 0 1 2 3
NOTES: (N) or (log N) -- time complexity for operations
not directly supported by member functions

It's from an old column I wrote on STL containers (C/C++ Users
Journal, December 1996.

P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4801
by: MPowell | last post by:
I'm going through the Koeing book Accelerated C++ in an attempt to understand Container classes. Of course I'm going through a paradigm shift from C to C++. So now I've got struct Header { int source : 3; int length : 4; int count : 9
8
1756
by: Nobody | last post by:
The requirement that STL container elements have to be assignable is causing me a problem. Consider a class X which contains both const and non-const data members: class X { public: X(const std::string &rStrId, int x) : m_strId(strId), m_x(x) { }
19
2236
by: Nafai | last post by:
Hi I want to write a function which erases al the repeated elements in a range. How should be the prototype? template <class Iterator> void eraseRepeated(Iterator begin, Iterator end); doesn't work because I need the container to write: container.erase(p), where p is an iterator.
16
2694
by: forester | last post by:
lets say its common situation when object have subobjects in container and receives callbacks from contained items. and object want to move objects in containers on signal(callback). iterator is needed for container modifications, item cannot know its iterator, at least its not easy to do so and i think cannot be done type-safe avoiding...
1
3592
by: DeveloperNC | last post by:
I've setup a custom 404 error page for my asp.net site. I have configured IIS to process non aspx pages and also added the correct web.config custom error section to the applicaiton. Every thing is working as expected expect with aspx pages. I get the bad page url in the aspxerrorpath querystring but it doesn't contain the original...
11
7385
by: PengYu.UT | last post by:
The following program calls the normal constructor and the copy constructor. By calling the copy constuctor is redundandant, all I want is only a vector of a trial object. Is there any way to avoid the use of the copy constructor? #include <vector> #include <iostream>
11
1673
by: food4uk | last post by:
Dear all : I am not good at programming, please give a hand. My data structure is very similar as an array. I actually can use the std::vector as container to organize my data objects. However, the behaviours of std::vector::iterator can not meet my requirements. I need to redefine the vector::iterator's behavious such as ++. It means...
1
1876
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I recessed it in a <Div></Divto allow scrolling of just the data, not the page. What I need to do is place a DataList (also in a <Div></Divto allow...
0
2867
by: cleary1981 | last post by:
Hi, Heres my xsl stylesheet. Its work in progress but it works. What I want to do however is to make one page in the middle (drawings) a landscape page. Can anyone explain how to do this as all attempts I have made have just gave me an error. <?xml version="1.0" encoding="ISO-8859-1" ?> <xsl:stylesheet version="1.0" ...
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.