02 янв. 2014 г., в 13:12, Geoffrey Garen <gga...@apple.com> написал(а):
> I think an appropriate style guideline for “auto” would say something like: > > - Use “auto" to declare a disgusting templated iterator type in a loop > - Use “auto… ->" to define a template-dependent return type in a class > template > - In all other cases, use an explicit type declaration +1 What do you think about these examples? auto failureCallback = [promiseWrapper]() mutable { promiseWrapper.reject(nullptr); }; … auto iter = m_nameToIdentifierMap.find(name.isolatedCopy()); if (iter == m_nameToIdentifierMap.end()) return false; - WBR, Alexey Proskuryakov
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev