ENH: improved swap/transfer methods for FixedList
- the transfer method was previously a copy - use std::reverse_iterator adaptors in FixedList This greatly reduces the amount of code and now avoids the array-bounds warning for FixedList::rend() - use pointer arithmetic instead of dereferencing the internal array
Showing
- applications/test/FixedList/Test-FixedList.C 114 additions, 33 deletionsapplications/test/FixedList/Test-FixedList.C
- src/OpenFOAM/containers/Lists/FixedList/FixedList.C 30 additions, 35 deletionssrc/OpenFOAM/containers/Lists/FixedList/FixedList.C
- src/OpenFOAM/containers/Lists/FixedList/FixedList.H 64 additions, 130 deletionssrc/OpenFOAM/containers/Lists/FixedList/FixedList.H
- src/OpenFOAM/containers/Lists/FixedList/FixedListI.H 30 additions, 28 deletionssrc/OpenFOAM/containers/Lists/FixedList/FixedListI.H
Please register or sign in to comment