40 List<
T*>(len, reinterpret_cast<
T*>(0))
90 return (i >= 0 && i < this->size()) ? (*this)[i] :
nullptr;
97 return (i >= 0 && i < this->size()) ? (*this)[i] :
nullptr;
129 const label idx = this->find_first_not();
134 <<
"Element " << idx <<
" is null" <<
nl patchWriters resize(patchIds.size())
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
constexpr char nl
The newline '\n' character (0x0a)
A rudimentary list of pointers used for PtrList, UPtrList, etc. This class is considered implementati...
void checkNonNull() const
FatalError if any null exists in the list.
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void setAddressableSize(const label n) noexcept
Set addressed size to be inconsistent with allocated storage.
void resize(const label newLen)
Reset size of list.
const T * get(const label i) const
Return const pointer to element or nullptr for out-of-range access.
constexpr PtrListDetail() noexcept
Default construct.