|
libxr
Embedded C++ framework for bare-metal, RTOS and Linux
|
槽位:引用计数、空闲链接和常驻负载。 Slot: reference count, free-stack link and resident payload. More...
#include <object_pool.hpp>
Public Member Functions | |
| Slot ()=default | |
| 默认构造负载 / Default-construct the payload. | |
| template<typename... Args> requires std::is_constructible_v<Data, Args...> | |
| Slot (std::in_place_t, Args &&... args) | |
| 用参数原地构造负载 / Construct the payload in place from arguments. | |
| Slot (const Slot &)=delete | |
| Slot & | operator= (const Slot &)=delete |
| Slot (Slot &&)=delete | |
| Slot & | operator= (Slot &&)=delete |
Friends | |
| class | ObjectPool |
槽位:引用计数、空闲链接和常驻负载。 Slot: reference count, free-stack link and resident payload.
Definition at line 58 of file object_pool.hpp.
|
inlineexplicit |
用参数原地构造负载 / Construct the payload in place from arguments.
| args | 负载构造参数 / Payload constructor arguments. |
Definition at line 72 of file object_pool.hpp.
|
friend |
Definition at line 82 of file object_pool.hpp.