![]() |
This is Unofficial EPICS BASE Doxygen Site
|
The shared_vector class is a std::vector like class which implements sharing data by reference counting.
Internally memory is tracked with the shared_ptr reference counting smart pointer. This allows a custom destructor to be specified. This allows a vector to borrow memory allocated by 3rd party libraries which require special cleanup.
In place element modification is allowed. It is left to user code to ensure that such modification is safe, either from application specific knowledge, or by calling make_unique explicitly, or implicitly by calling resize prior to making modifications.