Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Class template popcount

boost::compute::popcount

Synopsis

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

template<typename T> 
class popcount : public function< T(T)> {
public:
  // construct/copy/destruct
  popcount();
};

Description

Returns the number of non-zero bits in x.

See the documentation for

popcount public construct/copy/destruct

  1. popcount();

PrevUpHomeNext