brintos

brintos / llvm-project-archived public Read only

0
0
Text · 561 B · e6d25d9 Raw
14 lines · plain
1.. title:: clang-tidy - performance-noexcept-swap2 3performance-noexcept-swap4=========================5 6The check flags user-defined swap and iter_swap functions not marked with7``noexcept`` or marked with ``noexcept(expr)`` where ``expr`` evaluates to8``false`` (but is not a ``false`` literal itself).9 10When a swap or iter_swap function is marked as ``noexcept``, it assures the11compiler that no exceptions will be thrown during the swapping of two objects,12which allows the compiler to perform certain optimizations such as omitting13exception handling code.14