cpp/numeric/bit ceil

Calculates the smallest integral power of two that is not smaller than.

If that value is not representable in, the behavior is undefined. Call to this function is permitted in constant evaluation only if the undefined behavior does not occur.

.

Return value
The smallest integral power of two that is not smaller than.

Exceptions
Throws nothing.

Possible implementation
See possible implementations in libstdc++ (gcc) and libc++ (clang).