title: gtkmm: what is Glib::RefPtr usecases?
body: <p>I am writing a little GTK3 app with C++ and gtkmm library.</p>
  
  <p>In the gtkmm documentation usually some concrete instances such as Gtk::Application, Gtk::Builder, Gtk::StatusIcon etc. initialized with create() static methods that return a Glib::RefPtr. Meanwhile child widgets usually arise just on stack.</p>
  
  <p>That is not clear for me:</p>
  
  <ul>
  <li>Is it because memory stack usage or something else? There is no RefPtr's in my code for now. I checked usage of stack with valgrind's massif tool, peak usage was about 100 KB. Seems not too low for me, but comparable size <a href="https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/master/examples/book/buildapp/step9" rel="nofollow noreferrer">example with RefPtr's</a> takes a same piece of stack memory.</li>
  <li>May I place all instances just on stack like <code>Application myapp</code>, or should I always use create() while it present?</li>
  <li>What advantages the pointers provide in this case? </li>
  </ul>