Registry / utility / boost-ptr-container

boost-ptr-container

JSON →
library1.90.0vcpkgunverified

Boost.PtrContainer provides containers that own their elements via pointers, simplifying memory management.

vcpkg install boost-ptr-container
INSTALL
IMPORT
SIG · BOOST-PTR-CONTAINE
B
boost-ptr-container
utilitycppv1.90.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

boost/ptr_container/ptr_vector.hpp
#include <boost/ptr_container/ptr_vector.hpp>

Creates a pointer vector and accesses an element.

#include <boost/ptr_container/ptr_vector.hpp> #include <iostream> int main() { boost::ptr_vector<int> vec; vec.push_back(new int(42)); std::cout << *vec[0] << std::endl; return 0; }
Debug
Known issues
breakingBoost.PtrContainer is deprecated in favor of std::unique_ptr and standard containers.
fix
Use std::vector<std::unique_ptr<T>> instead.
affects: >=1.90.0
Upgrade
Version history
1.90.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Meta
1
Resources

No resource links recorded.