59 first() = std::move(
f);
60 second() = std::move(
s);
68 second() = vals.second;
75 first() = std::move(vals.first);
76 second() = std::move(vals.second);
106 Pair<
T>(list.first(), list.last(), doSort)
136 if (first() == second())
139 <<
"Call to other only valid for Pair with differing elements:"
142 else if (a == first())
146 else if (a != second())
167 return !(second() < first());
174 if (second() < first())
A 1D vector of objects of type <T> with a fixed length <N>.
T & first() noexcept
The first element of the list, position [0].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An ordered pair of two objects of type <T> with first() and second() elements.
Pair()=default
Default construct.
void flip()
Flip the Pair in-place.
bool sorted() const
True if first() is less-than second()
void sort()
Sort so that first() is less-than second()
const T & other(const T &a) const
Return other element.
static int compare(const Pair< T > &a, const Pair< T > &b)
Compare Pairs.
const T & second() const noexcept
Return second element, which is also the last element.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void Swap(DynamicList< T, SizeMinA > &a, DynamicList< T, SizeMinB > &b)
errorManip< error > abort(error &err)