void Container::Draw() { Context *c = GetContext(); for (std::vector< RefCountedPtr<Widget> >::iterator i = m_widgets.begin(); i != m_widgets.end(); ++i) c->DrawWidget((*i).Get()); }
void Container::Draw() { Context *c = GetContext(); for (auto end = m_widgets.end(), it = m_widgets.begin(); it != end; ++it) c->DrawWidget((*it).Get()); }