bits Function

public elemental function bits(self)

Returns the number of bit positions in self.

Arguments

Type IntentOptional AttributesName
class(bitset_type), intent(in) :: self

Return Value integer(kind=bits_kind)


Contents

Source Code


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