Soubok Soubok - 11 months ago 61
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 Source

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.