• Clemens Hammacher's avatar
    [base] Make USE a variadic template · 39e335c7
    Clemens Hammacher authored
    This will allow for passing more than one variable. This is
    particularly interesting for calling a method on each type in a
    parameter pack, as in:
    
    template<typename... T>
    void foo(T&&... ts) {
      USE(do_something(ts)...);
    }
    
    Drive-by fix: Allow to pass arbitrary types to USE, including
    references. This might prevent a copy for pass-by-value.
    
    R=ishell@chromium.org
    
    Change-Id: I8f894d730bbcd195ed83705f98771994b4bc906f
    Reviewed-on: https://chromium-review.googlesource.com/565561Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#46527}
    39e335c7
Name
Last commit
Last update
..
platform Loading commit data...
utils Loading commit data...
atomic-utils-unittest.cc Loading commit data...
bits-unittest.cc Loading commit data...
cpu-unittest.cc Loading commit data...
division-by-constant-unittest.cc Loading commit data...
flags-unittest.cc Loading commit data...
functional-unittest.cc Loading commit data...
ieee754-unittest.cc Loading commit data...
iterator-unittest.cc Loading commit data...
logging-unittest.cc Loading commit data...
sys-info-unittest.cc Loading commit data...