MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / operator++

Method operator++

src/OpenFOAM/memory/tmp/tmpI.H:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template<class T>
32inline void Foam::tmp<T>::operator++()
33{
34 ptr_->operator++();
35
36 if (ptr_->count() > 1)
37 {
38 FatalErrorInFunction
39 << "Attempt to create more than 2 tmp's referring to"
40 " the same object of type " << typeName()
41 << abort(FatalError);
42 }
43}
44
45
46// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers

nothing calls this directly

Calls 2

abortFunction · 0.50
countMethod · 0.45

Tested by

no test coverage detected