How can I store the contents of std::deque onto disk? I found that you can specify an allocator i.e.
std::deque<std::unique_ptr<my_struct>>, disk_allocator<std::unique_ptr<my_struct>>> q;
How can I write a custom allocator "disk_allocator" to store on disk? Does one already exist in the std library?