absl::has_single_bit

Determines whether x is an integral power of two.

Synopsis

Declared in <absl/numeric/bits.h>

using std::has_single_bit;