I'm fairly certain substr is a const member function so there is no need to copy 'd' to 'name'. Also, it would be better to move the immutable strings outside the function and declare them as class const statics
```
static const std::string kAtomic("std::atomic<");
```
I'd also recommend starting them with 'k' since that is often used to denote a 'konstant' in our code.