[all-commits] [llvm/llvm-project] 3c6bd1: [libc++] Rename __identity to __type_identity
philnik777 via All-commits
all-commits at lists.llvm.org
Thu Mar 24 17:01:42 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3c6bd176fb898352aaa03facdd4626af9043884a
https://github.com/llvm/llvm-project/commit/3c6bd176fb898352aaa03facdd4626af9043884a
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2022-03-25 (Fri, 25 Mar 2022)
Changed paths:
M libcxx/include/__memory/unique_ptr.h
M libcxx/include/deque
M libcxx/include/forward_list
M libcxx/include/list
M libcxx/include/map
M libcxx/include/set
M libcxx/include/type_traits
M libcxx/include/unordered_map
M libcxx/include/unordered_set
M libcxx/include/variant
M libcxx/include/vector
Log Message:
-----------
[libc++] Rename __identity to __type_identity
In C++20 the type trait `type_identity` was introduced. For the same purpose there is `__identity` for pre-C++20 code. The name is confusing, because since C++20 there is also `identity`, which isn't a type trait.
Reviewed By: ldionne, Mordante, #libc
Spies: EricWF, libcxx-commits
Differential Revision: https://reviews.llvm.org/D122017
More information about the All-commits
mailing list