[StyleGuide] Allow begin and end non-member functions

Allow usage of |std::begin| and |std::end|. This is useful for iterating
fixed-size arrays.

Discussion thread: https://groups.google.com/a/chromium.org/d/topic/cxx/5iFNE8P5qT4/discussion

Furthermore, this CL replaces home-brewn |std::end|-like functions in
base/trace_event with |std::end| to verify that <iterator> is supported
on all platforms.

Review URL: https://codereview.chromium.org/1471683002

Cr-Commit-Position: refs/heads/master@{#361192}


CrOS-Libchrome-Original-Commit: b425288a3f4168d1813d7c4db83de3c801cd9365
2 files changed
tree: aeb4343c086bf8c3aaa6f77bd27470bc2195382f
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/