1

我正在浏览NTL代码,但找不到struct _ntl_gbigint_body定义:

$ grep -r _ntl_gbigint_body *
include/NTL/ZZ.h:WrappedPtr<_ntl_gbigint_body, Deleter> rep;
include/NTL/lip.h:struct _ntl_gbigint_body;
include/NTL/lip.h:typedef _ntl_gbigint_body *_ntl_gbigint;
Binary file src/RR.o matches
.....
Binary file src/GF2E.o matches
src/lip.cpp:typedef WrappedPtr<_ntl_gbigint_body, _ntl_gbigint_deleter> _ntl_gbigint_wrapped;
Binary file src/mat_ZZ_p.o matches
......

我只是好奇它是在哪里定义的。

4

1 回答 1

1

在与 的作者 Victor Shoup 讨论后NTL,他给出了答案:

它实际上从未宣布过。
指向它的指针类似于 void 指针,但具有更好的错误检查功能。

于 2017-03-03T01:18:18.397 回答