STYLE: use 'is_sorted()' instead of 'sorted()' for readers, Pair, ...

- avoids naming ambiguity between querying sorted state vs returning a
  sorted list (for example)

ENH: add 'good()' method to a few more classes
This commit is contained in:
Mark Olesen
2023-07-17 09:53:44 +02:00
parent 8562f4d7a4
commit 779c3fe11e
37 changed files with 147 additions and 183 deletions

View File

@ -94,7 +94,7 @@ Foam::dynamicCodeContext::dynamicCodeContext(const dictionary& dict)
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
bool Foam::dynamicCodeContext::valid() const noexcept
bool Foam::dynamicCodeContext::good() const noexcept
{
return &(dict_.get()) != &(dictionary::null);
}