:relfileprefix: ../../../../
[#boost-urls-grammar-see_below-nearest_pow2]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/grammar.adoc[pass:[grammar]]::xref:boost/urls/grammar/see_below.adoc[pass:[see_below]]::nearest_pow2



=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/detail/recycled.hpp#L40[boost/url/grammar/detail/recycled.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
std::size_t
nearest_pow2(
    std::size_t x,
    std::size_t f = 0) noexcept;
----







