ENH: explicit convert to bool operator for autoPtr
- behaves the same as the valid() method, but can be queried directly like a normal raw pointer and as per std::unique_ptr. Eg, autoPtr<T> ptr = ... if (ptr) ...
Showing
- applications/test/autoPtr/Test-autoPtr.C 17 additions, 1 deletionapplications/test/autoPtr/Test-autoPtr.C
- src/OpenFOAM/memory/autoPtr/autoPtr.H 2 additions, 0 deletionssrc/OpenFOAM/memory/autoPtr/autoPtr.H
- src/OpenFOAM/memory/autoPtr/autoPtrI.H 7 additions, 0 deletionssrc/OpenFOAM/memory/autoPtr/autoPtrI.H
Please register or sign in to comment