diff --git a/README.md b/README.md index 4500706..5f511d1 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # mio An easy to use header-only cross-platform C++11 memory mapping library with an MIT license. +mio has been created with the goal to be easily includable (i.e. no dependencies) in any C++ project that needs memory mapped file IO without the need to pull in Boost. + Please feel free to open an issue, I'll try to address any concerns as best I can. ### Why? -mio has been created with the goal to be easily includable (i.e. no dependencies) in any C++ project that needs memory mapped file IO without the need to pull in Boost. - The primary motivation for writing this library instead of using Boost.Iostreams, was the lack of support for establishing a memory mapping with an already open file handle/descriptor. This is possible with mio. Albeit a minor nitpick, Boost.Iostreams implements memory mapped file IO with a `std::shared_ptr` to provide shared semantics, even if not needed, and the overhead of the heap allocation may be unnecessary and/or unwanted.