Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ file memory mapping container akin to std::vector / boost::array

I was wondering if there is a well C++ library that provides a file memory mapping container akin to std::vector or boost::array, with the notable difference that it operates on a file memory map.

Right now I'm considering implementing such myself, based on boost::array, but I'd rather not reinvent the wheel.

like image 286
datenwolf Avatar asked Feb 24 '26 12:02

datenwolf


1 Answers

Check out boost interprocess. It contains a lot of containers and allocators suitable for use with arbirtrary memory locations. There is also direct support for mapped files.

like image 141
edA-qa mort-ora-y Avatar answered Feb 26 '26 03:02

edA-qa mort-ora-y



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!