![]() ![]() That is because most of the code we are going to look at is standard C++. Furthermore, by no means is this supposed to be a complete tutorial to standard allocators or to memory management in general.īy the way, as you can see, the Environment section at the beginning of this article is somewhat special. However, this concept is pretty complex and thus-although we are trying to explain things in a simple way-we have to expect a little bit of knowledge about the basic principles of programming from you. So, besides talking about allocators as a concept, we will also take a look at some pitfalls you may encounter if you decide to implement one. One of the reasons is that, after putting together a neat custom allocator and successfully testing it with 'std::vector', we thought we give it a shot with 'std::list', too. ![]() However, as we started digging into this topic, we realized that it is worth a stand-alone article. In the previous article, A Beginner’s Tutorial For std::vector, Part 1, it was promised that the next part of the tutorial will comment on the second template parameter of the 'std::vector', that is, the allocator. Operating systems: Windows 2000 SP2, Red Hat Linux 7.2 (kernel 2.4.7-10) Introduction STL Implementations: Dinkumware for VC++ 6.0, STLport 4-5-3, GNU ISO C++ Library ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |