Deprecated _tmp functions replaced by library ones
Iterators replaced with streams where appropriate