bits Function

public elemental function bits(self)

Returns the number of bit positions in self.

Type Bound

bitset_type

Arguments

Type IntentOptional Attributes Name
class(bitset_type), intent(in) :: self

Return Value integer(kind=bits_kind)


Source Code

    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