Go to the documentation of this file.
40 int main(
int argc,
char *argv[])
44 for (
int i = 0; i<10; i++)
52 Info<<
nl <<
"And again using STL iterator: " <<
nl <<
endl;
59 Info<<
nl <<
"And again using STL const_iterator: " <<
nl <<
endl;
70 Info<<
"Removing element:" << *iter <<
endl;
80 for (
int i = 0; i<10; i++)
89 Info<<
"original: " << myList <<
endl;
94 Info<<
nl <<
"source: " << myList <<
nl
95 <<
nl <<
"target: " << newList <<
endl;
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void append(const T &a)
Add at tail of list.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
Non-intrusive singly-linked list.
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
T remove(link *l)
Remove and return element.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
void transfer(LList< LListBase, T > &)
Transfer the contents of the argument into this List.