• jdoerrie's avatar
    [styleguide] Allow std::reference_wrapper, std::ref and std::cref · c79c2fa2
    jdoerrie authored
    This change moves the library features std::reference_wrapper, std::ref
    and std::cref from the to be discussed section to the allowed section,
    adds further documentation and links to the cxx@ discussion thread.
    
    Furthermore, it removes base::internal::ConstRefWrapper and modifies
    base::ConstRef to construct std::reference_wrappers instead.
    
    As a follow up to this change all usages of base::ConstRef should be
    replaced by std::cref, and base::ConstRef should be removed as well.
    
    Bug: 934808
    Change-Id: Ie09884c38049a0f69bb3cb6442907c699e29da2e
    Reviewed-on: https://chromium-review.googlesource.com/c/1482958
    Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
    Reviewed-by: default avatarNico Weber <thakis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#635481}
    c79c2fa2
c++11.html 67.4 KB