• Johann's avatar
    docs: update examples to follow styleguide · 16cf06fd
    Johann authored
    Remove usage of DISALLOW_COPY_AND_ASSIGN from documentation.
    
    styleguide/c++/c++-dos-and-donts.md:
    'DISALLOW_COPY_AND_ASSIGN` is deprecated.  For
    a non-copyable/movable type, delete the copy operations (the move
    operations will be implicitly deleted); otherwise, declare either
    copy operations, move operations, or both (a non-declared pair
    will be implicitly deleted).  Always declare or delete both
    construction and assignment, not just one (which can introduce
    subtle bugs).
    
    Change-Id: I2d2e0ecf95c3ef764dc90d49c674625c15432d87
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404905Reviewed-by: default avatarTal Pressman <talp@chromium.org>
    Reviewed-by: default avatarFinnur Thorarinsson <finnur@chromium.org>
    Commit-Queue: Johann Koenig <johannkoenig@google.com>
    Cr-Commit-Position: refs/heads/master@{#806782}
    16cf06fd
api_functions.md 9.51 KB