3 ms·
This is reinventing the wheel. There are string streams fro that.
by 10098 13y ago
This is reinventing the wheel. There are string streams fro that.
- eropple 13y agoStringstream is really slow. It's great for a lot of stuff, but performance isn't one of them.
- jonhohle 13y agoExcept, as pointed out below, it's significantly faster than this implementation.
- eropple 13y agoHuh, so it is. That's really surprising to me, but I guess those standard library folks are smart fellas. =)
- 10098 13y agoYeah, never underestimate the library authors. There were a couple of times I thought I had found a bug in a standard library implementation only to be pointed at the language standard and told that it's supposed to work that way :)