cptr::vm::purge

Give the pages back to the OS but keep the range mapped (on Linux and macOS it reads as zeros afterwards). Commit it again before reuse.

Synopsis

Declared in <cptr/user_cage.hpp>

void
purge(
    void* p,
    std::size_t size) noexcept;