How to write C++ library which can store several objects with certain size each

I want to write the library with a function which can store to 10 objects, each one is 100MB in size and later I want to access, would someone know how to design this library function or provide any hint? Thank you so much!