I was reviewing my code, and I found out that i use often these constructs:
std::shared_ptr<std::vector<shared_ptr<ClassA>>>
auto instance = std::make_shared<std::vector<shared_ptr<ClassB>>>()
etc.
Is there a valid opportunity to set a shortcut for the std::make_shared<std::vector<shared_ptr<$CLASSNAME$>>>
or std::shared_ptr<std::vector<shared_ptr<$CLASSNAME$>>>
phrase?
something like using svs<ClassA> = std::shared_ptr<std::vector<shared_ptr<ClassA>>>
(invalid syntax; does not compile!)
Is there another opportunity, than using a template?
Greets