Boost C++ 函式庫

...世界上最受推崇且設計精良的 C++ 函式庫專案之一。 Herb SutterAndrei Alexandrescu,《C++ 程式碼規範

PrevUpHomeNext

標頭檔結構

表 1.10. 頂層標頭檔

標頭檔

包含

cpp_int.hpp

cpp_int 後端類型。

gmp.hpp

定義所有與 GMP 相關的後端。

miller_rabin.hpp

Miller Rabin 質數測試程式碼。

number.hpp

定義 number 後端,所有後端標頭檔都會包含此檔案。

mpfr.hpp

定義 mpfr_float_backend 後端。

random.hpp

定義與 Boost.Random 互動的程式碼。

rational_adaptor.hpp

定義 rational_adaptor 後端。

cpp_dec_float.hpp

定義 cpp_dec_float 後端。

tommath.hpp

定義 tommath_int 後端。

concepts/number_archetypes.hpp

定義用於測試的後端概念原型。


表 1.11. 實作標頭檔

標頭檔

包含

cpp_int/add.hpp

cpp_int_backend 的加法和減法運算子。

cpp_int/bitwise.hpp

cpp_int_backend 的位元運算子。

cpp_int/checked.hpp

cpp_int_backend 的檢查算術輔助函式。

cpp_int/comparison.hpp

cpp_int_backend 的比較運算子。

cpp_int/cpp_int_config.hpp

cpp_int_backend 的基本設定和配置。

cpp_int/divide.hpp

cpp_int_backend 的除法和餘數運算子。

cpp_int/limits.hpp

cpp_int_backendnumeric_limits 支援。

cpp_int/misc.hpp

cpp_int_backend 的其他運算子。

cpp_int/multiply.hpp

cpp_int_backend 的乘法運算子。

detail/default_ops.hpp

選用後端非成員函式的預設版本。

detail/generic_interconvert.hpp

通用類型轉換例程。

detail/number_base.hpp

number 的所有表達式樣板程式碼、元程式設計和運算子多載。

detail/no_et_ops.hpp

非表達式樣板運算子。

detail/functions/constants.hpp

定義浮點函式使用的常數。

detail/functions/pow.hpp

定義冪次和指數相關浮點函式的預設版本。

detail/functions/trig.hpp

定義三角函數相關浮點函式的預設版本。



PrevUpHomeNext