folly::strictNextPowTwo

Return the smallest power of two that is strictly greater than v.

Synopsis

Declared in <folly/lang/Bits.h>

template<class T>
constexpr
T
strictNextPowTwo(T const v);

Return Value

The next power of two > v.

Parameters

NameDescription
vThe unsigned value to round up.