/* doubleStash2Test */

#include "stash2.h"
#include "stash2.cpp"
#include "../require.h"
#include <iostream>
#include <string>

using namespace std;


int main(int argc, char* argv[]) {
  Stash doubleStash(sizeof(double));

  for (int i = 0; i < 25; i++) {
  double d = i + 0.5;
    doubleStash.add(&d);
  }

  for (int j = 0; j < doubleStash.count(); j++) {
    cout << "doubleStash.fetch(" << j << ") = "
         << *(double *)doubleStash.fetch(j)
         << endl;
  }
}
