#include "indexx.hpp"
#include "bag.hpp"
#include <iostream>

main()
{
  bag<float> b;
  indexx<int,float,10> i;
  int j=0;
  float * nextptr;
  for (j; j<5; j++)
    i.insert(j, b.insert((float)(1.1*j)));
  i.insert(2, b.insert((float)(1.2)));
  cout << *i.lookup(2) << endl;
  nextptr = i.next(2);
  if( nextptr != NULL )
    cout << *nextptr << endl;
}
