For those of you already using Boost, Boost also has a MMAP in their IOStreams library and it works pretty well (like most things boost).
https://www.boost.org/doc/libs/1_68_0/libs/iostreams/doc/cla...
https://www.boost.org/doc/libs/1_68_0/libs/iostreams/doc/cla...
I've always wanted to try irt, but it can't handle unexpected process failure (i.e. a crashed process will leave the memory in an unknown state) which is something I always end up needing.
I've seen parts that weren't much better then someones lib on github, because essentially that's what boost is.