Obsolete Members for <QtAssert>

クラス<QtAssert> の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

マクロ

(deprecated) void Q_ASSUME(bool expr)

マクロ・ドキュメント

[deprecated] void Q_ASSUME(bool expr)

このマクロは非推奨である。新しいコードでは使用しないことを強く推奨する。

コンパイラにexprtrue であると仮定させる。

このマクロは、コンパイラのバージョンによっては、仮定が挿入されていない場合よりも悪いコードを生成することが知られています。このマクロに渡される引数は、リリース・モードであっても、コンパイラによって評価されるものとされないものがあります。

新しいコードでは使用しないでください。古いコードとの互換性のためにそのまま残されており、次のメジャーバージョンのQtでは削除される可能性が高いです。

Q_ASSERT(),Q_UNREACHABLE(),Q_LIKELY()も参照して ください。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.