[all-commits] [llvm/llvm-project] b39f43: [ADT] add initializer list specialization for is_c...

Chris B via All-commits all-commits at lists.llvm.org
Tue Mar 29 10:39:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b39f437757967687dd60d9d5a657cc3b421cf83d
      https://github.com/llvm/llvm-project/commit/b39f437757967687dd60d9d5a657cc3b421cf83d
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-03-29 (Tue, 29 Mar 2022)

  Changed paths:
    M llvm/include/llvm/ADT/STLExtras.h
    M llvm/unittests/ADT/STLExtrasTest.cpp

  Log Message:
  -----------
  [ADT] add initializer list specialization for is_contained

Adding an initializer list specialization for is_contained allows for
compile-time evaluation when called with a constant or runtime
evaluation for non-constant values.

This patch doesn't add any uses of this template, but that is coming in
a subsequent patch.

Reviewed By: pete

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




More information about the All-commits mailing list