Soubok Soubok - 3 months ago 19
C Question

detecting the memory page size

Is there a portable way to detect (programmatically) the memory page size using C or C++ code ?

Answer

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.