[all-commits] [llvm/llvm-project] 01bf8c: [ADT] Support const-qualified unique_functions

Sam McCall via All-commits all-commits at lists.llvm.org
Mon Jun 29 11:14:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 01bf8cdf5fa9bc71869e15e5e351b2b68c39feb6
      https://github.com/llvm/llvm-project/commit/01bf8cdf5fa9bc71869e15e5e351b2b68c39feb6
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2020-06-29 (Mon, 29 Jun 2020)

  Changed paths:
    M llvm/include/llvm/ADT/FunctionExtras.h
    M llvm/unittests/ADT/FunctionExtrasTest.cpp

  Log Message:
  -----------
  [ADT] Support const-qualified unique_functions

Summary:
This technique should extend to rvalue-qualified etc, but I didn't add any.
I removed "volatile" from the future plans, which seems... speculative at best.

While here I moved the callbacks object out of the constructor into a
variable template, which I believe addresses the fixme there about unused
objects.

(I'm not a template guru, so it's always possible the old version was designed
for compile-time performance in a way I'm missing)

Reviewers: kadircet

Subscribers: dexonsmith, llvm-commits, chandlerc

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82581




More information about the All-commits mailing list