#ifndef TINYSTL_ALGORITHM
#define TINYSTL_ALGORITHM

namespace std
{
  
  struct _setw { int n; };
  _setw setw (int n) {
    _setw x;
    x.n = n;
    return x;
  }

  istream& operator>> (istream& is, _setw f) {
    is.width(f.n);
    return is;
  }
  
  ostream& operator<< (ostream& os, _setw f) {
    os.width(f.n);
    return os;
  }

  
  struct _setfill { char c; };
  _setfill setfill (char c) {
    _setfill x;
    x.c = c;
    return x;
  }
  
  istream& operator>> (istream& is, _setfill f) {
    is.fill (f.c);
    return is;
  }
  
  ostream& operator<< (ostream& os, _setfill f) {
    os.fill (f.c);
    return os;
  }
  
}

#endif
