<分区>
我在位于 in this repository 的 C++ 库 NT2
的 github 页面上.当我单击开发人员文档的链接时,我得到一个无处可去的链接。我正在尝试阅读文档以查看 NT2
是否提供默认的 popcount 函数。
标签 c++
<分区>
我在位于 in this repository 的 C++ 库 NT2
的 github 页面上.当我单击开发人员文档的链接时,我得到一个无处可去的链接。我正在尝试阅读文档以查看 NT2
是否提供默认的 popcount 函数。
最佳答案
正如评论所暗示的那样,网络存档确实有一个(不完整的)文档存档:
https://web.archive.org/web/20151127024254/http://nt2.metascale.fr/doc/html/
但在您的情况下,包含 popcount 文档的实际页面未存档。但是 popcnt() 函数是在头文件 nt2/bitwise/functions/popcnt.hpp 中定义的,它位于
根据头文件:
Returns the number of bit sets the input.
@par semantic:
For any given value @c x of type @c T:
@code
as_integer<T, unsigned> r = popcnt(x);
@endcode
@see @funcref{clz}, @funcref{ctz}
@param a0
@return a value of the unsigned integer
type associated to the input.
虽然不如文档那么好,但它确实证明了 popcount 在库中并且确实展示了如何调用它。
我认为文档消失的原因是因为它似乎在 github 存储库中 - 但以 quickbook 形式。
关于c++ - C++ NT2 库文档在哪里?它是否具有默认的 popcount 函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42430488/