| Home | Libraries | People | FAQ | More

## Class template popcount

boost::compute::popcount

## Synopsis

    // In header: <boost/compute/functional/popcount.hpp>

    template<typename T>
    class popcount : public boost::compute::function< T(T)> {
    public:

      // public member functions
      popcount();
    };

## Description

Returns the number of non-zero bits in `x`.

See the documentation for

### `popcount` public member functions

1.     popcount();