std::shared_ptr support and related example.