Content deleted Content added
Create |
Allocators |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1:
In [[C++]] [[computer programming]], '''allocators''' are an important component of the [[C++ Standard Library]]. The standard [[software library|library]] provides several [[data structures]], such as [[list (computing)|list]] and [[Set (computer science)|set]], commonly referred to as [[container (data structure)|containers]]. A common trait among these containers is their ability to change size during the [[Run time (program lifecycle phase)|execution]] of the [[computer program|program]]. To achieve this, some form of [[dynamic memory allocation]] is usually required. Allocators handle all the requests for [[Manual memory management|allocation and deallocation]] of memory for a given container. The C++ Standard Library provides general-purpose allocators that are used by default, however, custom allocators may also be supplied by the [[programmer]].<noinclude>
{{CC-notice|cc=bysa3|url=http://en.wikipedia.org/w/index.php?title=
|