Code sample of stringbuf in STL