Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
標準に準拠したC++では、次のことが当てはまることが保証されていますか?
#include <limits> std::numeric_limits<float>::has_infinity
私は専門家ではありませんが、それはis_iec559, (型が IEC-559 / IEEE-754 規格に準拠しているかどうかをテストします) の値に依存しませんか?
is_iec559
ライブラリの実装が C++ 標準に準拠し、無限大の float を使用すると仮定すると、そうなるはずです。