Is there a portable way to detect (programmatically) the memory page size using C or C++ code?
Since Boost
is a pretty portable library you could use mapped_region::get_page_size()
function to retrieve the memory page size.
As for C++ Standard it gives no such a possibility.