This PR is split from #19238 as all of its commits are trivial to review.
The last commit is easy to review with git diff --color-moved=dimmed-zebra
.
Addressed the following comments from #19238:
Can you consolidate all the private members and protected members to be next to each other? Multiple private and protected access specifiers make this harder to read than is necessary.
Yeah, class declaration is easier to read if there is just one instance of
public:
,protected:
andprivate:
(in that order).