Inspirel banner

Programming Distributed Systems with YAMI4

3.4.2 C++

The yami namespace contains the definition of the parameters class, which has the default constructor:

#include <yami.h>

using namespace yami;

// ...
    parameters params;
    // ...

Objects of the parameters type can be created as local objects, statically and at namespace scope as well as dynamically.

It is relatively inexpensive to create empty parameters objects, so the recommended practice is to create them in the innermost scope where they are needed.