Skip to content

Rose::BitOps::nBits

Number of bits in a type or value.

Synopsis

Declared in <src/Rose/BitOps.h>

template<typename Unsigned>
size_t
nBits(Unsigned x = Unsigned(0));

Return Value

Number of bits in the unsigned type.

Parameters

Name

Description

x

Sample value used to deduce the type.

Created with MrDocs