STYLE: mark FixedList data(), first(), last() as noexcept
- since a zero-sized FixedList is disallowed, the accessors to the first/last elements are always known. This allows Pair second() to be noexcept as well (as per Tuple2)
Showing
- src/OpenFOAM/containers/Lists/FixedList/FixedList.H 6 additions, 6 deletionssrc/OpenFOAM/containers/Lists/FixedList/FixedList.H
- src/OpenFOAM/containers/Lists/FixedList/FixedListI.H 6 additions, 6 deletionssrc/OpenFOAM/containers/Lists/FixedList/FixedListI.H
- src/OpenFOAM/primitives/Pair/Pair.H 2 additions, 2 deletionssrc/OpenFOAM/primitives/Pair/Pair.H
- src/OpenFOAM/primitives/Pair/PairI.H 2 additions, 2 deletionssrc/OpenFOAM/primitives/Pair/PairI.H
Please register or sign in to comment