# fn() testAllOnes
Tests whether all bits of the given value are set to 1.

Defined in | <seqan/misc.h>
Signature | `bool testAllOnes(val)`

## Parameters

`val` | The value to check the bits for. Must be of type IntegerConcept.

## Return Values

`bool` | `true` if all bits are set to 1, `false` otherwise.

## Data Races

Thread safety unknown!

## See Also

- testAllZeros

#### Dox Sources

    /*!
     * @fn testAllOnes
     *
     * @headerfile <seqan/misc.h>
     *
     * @brief Tests whether all bits of the given value are set to <b>1</b>.
     *
     * @signature bool testAllOnes(val)
     *
     * @param[in] val The value to check the bits for. Must be of type @link
     *                IntegerConcept @endlink.
     *
     * @return bool <tt>true</tt> if all bits are set to <b>1</b>, <tt>false</tt>
     *              otherwise.
     *
     * @see testAllZeros
     */