产品详情
VT130H7U410KA TOSHIBA
购买咨询热线:18059884797 (微信同号)
QQ:3095989363
邮箱:sales@xiongbagk.cn
地 址:福建省漳州开发区南滨大道429号招商局芯云谷3号楼217-01
公司:厦门雄霸电子商务有限公司漳州分公司
VT130H7U410KA在C++编程中,分配器(英语:allocator)是C++标准库的重要组成部分。C++的库中定义了多种被统称为“容器”的数据结构(如链表、集合等),这些容器的共同特征之一,就是其大小可以在程序的运行时改变;为了实现这一点,进行动态内存分配就显得尤为必要,在此分配器就用于处理容器对内存的分配与释放请求。换句话说,分配器用于封装STL容器在内存管理上的低层细节。默认情况下,C++标准库使用其自带的通用分配器,但根据具体需要,程序员也可自行定制分配器以替代之。
VT130H7U410KA分配器最早由亚历山大·斯特潘诺夫作为C++标准模板库(Standard Template Library,简称STL)的一部分发明,其初衷是创造一种能“使库更加灵活,并能独立于底层数据模型的方法”,并允许程序员在库中利用自定义的指针和引用类型;但在将标准模板库纳入C++标准时,C++标准委员会意识到对数据模型的完全抽象化处理会带来不可接受的性能损耗,为作折中,标准中对分配器的限制变得更加严格,而有鉴于此,与斯特潘诺夫原先的设想相比,现有标准所描述的分配器可定制程度已大大受限。
VT130H7U410KA虽然分配器的定制有所限制,但在许多情况下,仍需要用到自定义的分配器,而这一般是为封装对不同类型内存空间(如共享内存与已回收内存)的访问方式,或在使用内存池进行内存分配时提高性能而为。除此以外,从内存占用和运行时间的角度看,在频繁进行少量内存分配的程序中,若引入为之专门定制的分配器,也会获益良多。
VT130H7U410KA In C++ programming, allocator (English: allocator) is an important part of C++ standard library. The library of C++ defines a variety of data structures (such as linked list, set, etc.) collectively referred to as “containers”. One of the common features of these containers is that their size can be changed when the program is running; In order to realize this, it is particularly necessary to carry out dynamic memory allocation, where the allocator is used to handle the container’s requests for memory allocation and release. In other words, the allocator is used to encapsulate the low-level details of memory management of STL containers. By default, the C++ standard library uses its own universal allocator, but according to the specific needs, programmers can customize their own allocator to replace it.
VT130H7U410KA allocator was first invented by Alexander Stepanov as a part of C++ Standard Template Library (STL). Its original intention is to create a method that can make the library more flexible and independent of the underlying data model, and allow programmers to use custom pointers and reference types in the library. However, when the standard template library was incorporated into the C++ standard, the C++ Standards Committee realized that the complete abstraction of the data model would bring unacceptable performance loss. In order to make a compromise, the restrictions on the distributor in the standard became stricter. In view of this, compared with the original idea of Stepanov, the customizable degree of the distributor described in the existing standard has been greatly limited.
VT130H7U410KA Although the customization of allocators is limited, in many cases, it is still necessary to use custom allocators, which are generally used to encapsulate the access methods of different types of memory spaces (such as shared memory and reclaimed memory) or to improve the performance when using memory pools for memory allocation. In addition, from the point of view of memory occupation and running time, in programs that frequently allocate a small amount of memory, it will also benefit a lot if a specially-made allocator is introduced.
TOSHIBA RAD02-2017 | TOSHIBA USIO21 |
TOSHIBA VT130G304035 | TOSHIBA HC422B |
Toshiba Clamrol F0031241 | TOSHIBA VFP1-4550UP-B1 |
TOSHIBA VT130G204110 | TOSHIBA VT130H7U410KA |
TOSHIBA VT130G3U-4160 | TOSHIBA VT130G2U4750 |
TOSHIBA VT130G304055 | TOSHIBA VT130G7U-4400B |
Toshiba RAD310-1006E | TOSHIBA VFA5-4450P |
Toshiba RAD320 | Toshiba Tosvert-130 |
TOSHIBA VT130H1U-4110B0 | TOSHIBA VT130G3U435K |
TOSHIBA RAD10-012 | TOSHIBA VT130G1-4330R0H |
TOSHIBA TPU325H-S | TOSHIBA VT130G3U4330 |
TOSHIBA VT130H1U-4110-BOH | TOSHIBA VFP1-4250UP-B1 |
TOSHIBA VT130G2U4110 | TOSHIBA VT130H1U4270B0H |
TOSHIBA SSN322-MS | TOSHIBA VT130H2U4330 |
TOSHIBA SSN322-MS | TOSHIBA VT130G1-2270-BOH |
TOSHIBA VFS7-4110UPLH | Toshiba CIMR-SJF-37AA |
TOSHIBA RAD12-2017 | TOSHIBA VT130H7U4270 |
TOSHIBA VT130G1-4160BOH | TOSHIBA VT130G7U4220 |
TOSHIBA VT130G1-2220B0H | TOSHIBA VT130H1U-4220-B0H |
TOSHIBA VFS7-4150UPLH | Toshiba Q-Flowsaver |
TOSHIBA VT130G1-4110BO | TOSHIBA TPU325H-S |
TOSHIBA VT130G1-2110BOH | TOSHIBA PROSEC EX500 |
TOSHIBA MG150Q2YS11 | Toshiba VT130G3U4270 |
TOSHIBA MG150Q2YK1 | TOSHIBA VT130H3U4220 |