13. TUTORIAL 007 : Mutable Collection

In this small tutorial, we will learn how to use the Mutable Container (an efficient associative container) of the tulip API that enables :

The direct access in this container is forbidden, but it exist a getter and a setter :

The MutableContainer has two more methods :

Following is a small example of its use :

  //declaration of a new MutableContainer 
  MutableContainer<int> t;
  //set all element to 0
  //except element of index 1 set to 1.
  //display on standard output
  cout << t.get(1) << "and" << t.get(2) << endl;