|
From: Ioannis V. <no...@ho...> - 2002-03-26 19:37:09
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Daniel Glenfield Sent: Monday, March 25, 2002 9:47 AM To: d_w...@ho...; dev...@li... Subject: Re: [Dev-C++] Struct tag Thanks. A vector (stop me if I've over-generalised this or am just plain wrong ppl) is an array with built in features such as error checking but can, unless used perfectly, use more resources. Is that ok everyone? :) No. One pays for what he uses. If you need features that occupy some resources, you would occupy the same resources and even more if you use built in arrays and functions getting them as arguments and twiddling their bits. Standard library containers are made small in such way so as the member functions are inlined and we have no time cost. In fact usually we have less time cost than C style code separated in functions! For an example see my tests at: http://users.forthnet.gr/ath/jvr/c++faq.htm Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys |