[llvm] 919b638 - [ADT] Use std::common_type_t (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 18 10:25:19 PDT 2022
Author: Kazu Hirata
Date: 2022-09-18T10:25:04-07:00
New Revision: 919b638effa8ab829f07e9105f324bf450e4c063
URL: https://github.com/llvm/llvm-project/commit/919b638effa8ab829f07e9105f324bf450e4c063
DIFF: https://github.com/llvm/llvm-project/commit/919b638effa8ab829f07e9105f324bf450e4c063.diff
LOG: [ADT] Use std::common_type_t (NFC)
Added:
Modified:
llvm/include/llvm/ADT/STLExtras.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index fdb818ebd8c5b..d0a8065fa4a88 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -390,9 +390,9 @@ class filter_iterator_base
: public iterator_adaptor_base<
filter_iterator_base<WrappedIteratorT, PredicateT, IterTag>,
WrappedIteratorT,
- typename std::common_type<
- IterTag, typename std::iterator_traits<
- WrappedIteratorT>::iterator_category>::type> {
+ std::common_type_t<IterTag,
+ typename std::iterator_traits<
+ WrappedIteratorT>::iterator_category>> {
using BaseT = typename filter_iterator_base::iterator_adaptor_base;
protected:
@@ -618,9 +618,9 @@ template<typename... Iters> struct ZipTupleType {
template <typename ZipType, typename... Iters>
using zip_traits = iterator_facade_base<
ZipType,
- typename std::common_type<
+ std::common_type_t<
std::bidirectional_iterator_tag,
- typename std::iterator_traits<Iters>::iterator_category...>::type,
+ typename std::iterator_traits<Iters>::iterator_category...>,
// ^ TODO: Implement random access methods.
typename ZipTupleType<Iters...>::type,
typename std::iterator_traits<
More information about the llvm-commits
mailing list