Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Elements of Modern C++ Style. Parent comment
But if you really need a compact notation for smart pointers, you'll get pretty close by using template aliases, e.g.
template <typename T> using up = std::unique_ptr<T>; template <typename T> using sp = std::shared_ptr<T>; // ... up<int> foo(sp<int> bar) { return bar ? up<int>(new int(*bar)) : nullptr; }
But if you really need a compact notation for smart pointers, you'll get pretty close by using template aliases, e.g.