Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
page_sizes

Returns the page sizes of this architecture which is useful for calculating direct i/o multiples.

Synopsis
BOOST_AFIO_DECL std::vector<size_t> utils::page_sizes(bool only_actually_available = true)
Parameters

Type

Concept

Name

Description

bool

only_actually_available

Only return page sizes actually available to the user running this process

Returns

The page sizes of this architecture.

Header

#include <boost/afio/v2/afio.hpp>

Complexity

Whatever the system API takes (one would hope constant time).

Exception Model

Any error from the operating system or std::bad_alloc.


PrevUpHomeNext