This removes a lot of boilerplate.
Details
Details
- Reviewers
ldionne EricWF - Group Reviewers
Restricted Project - Commits
- rG777f03479941: [libc++] inline more functions into basic_string
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Can you run benchmarks for string before and after just to be sure? It shouldn't change anything since the functions were inline before and they still are implicitly inline, but who knows.
Comment Actions
This also affects external instantiations. So I'm not sure this is as simple as just "removing boilerplate".
Have you considered this?
Comment Actions
Disregard me. They were all marked inline already.
Though I must say, I prefer out-of-line definitions for big classes because it makes it easier to inspect the class and see we provide the correct declarations.