class Something { typedef std::unique_ptr<Something> unique; typedef std::shared_ptr<Something> shared; typedef std::weak_ptr<Something> weak; }; // ... // later in the code Something::unique a; // instead of std::unique_ptr<Something> a;