返回self
中的位数。
类型 | 意图 | 可选 | 属性 | 名称 | ||
---|---|---|---|---|---|---|
class(bitset_type), | intent(in) | :: | self |
elemental function bits(self) !! Version: experimental !! !! Returns the number of bit positions in `self`. integer(bits_kind) :: bits class(bitset_type), intent(in) :: self bits = self % num_bits return end function bits