>>651
こんなのでどう。

template<typename T>
basic_ostream<T>& operator<<(basic_ostream<T>& out, const hoge& h)
{
  return out << h.s1 << '\n' << h.s2;
}

ofstream out("ファイル名", ios_base::out);
copy(hoges.begin(), hoges.end(), ostream_iterator<hoge,char>(out, '\n'));