forked from OSchip/llvm-project
[libc++] Use _EnableIf instead of std::enable_if in deduction guides for map and set
llvm-svn: 366594
This commit is contained in:
parent
910323e667
commit
a5bd48939c
|
@ -1474,26 +1474,26 @@ private:
|
||||||
#ifndef _LIBCPP_HAS_NO_DEDUCTION_GUIDES
|
#ifndef _LIBCPP_HAS_NO_DEDUCTION_GUIDES
|
||||||
template<class _InputIterator, class _Compare = less<__iter_key_type<_InputIterator>>,
|
template<class _InputIterator, class _Compare = less<__iter_key_type<_InputIterator>>,
|
||||||
class _Allocator = allocator<__iter_to_alloc_type<_InputIterator>>,
|
class _Allocator = allocator<__iter_to_alloc_type<_InputIterator>>,
|
||||||
class = enable_if_t<!__is_allocator<_Compare>::value, void>,
|
class = _EnableIf<!__is_allocator<_Compare>::value, void>,
|
||||||
class = enable_if_t<__is_allocator<_Allocator>::value, void>>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
map(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator())
|
map(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator())
|
||||||
-> map<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>, _Compare, _Allocator>;
|
-> map<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>, _Compare, _Allocator>;
|
||||||
|
|
||||||
template<class _Key, class _Tp, class _Compare = less<remove_const_t<_Key>>,
|
template<class _Key, class _Tp, class _Compare = less<remove_const_t<_Key>>,
|
||||||
class _Allocator = allocator<pair<const _Key, _Tp>>,
|
class _Allocator = allocator<pair<const _Key, _Tp>>,
|
||||||
class = enable_if_t<!__is_allocator<_Compare>::value, void>,
|
class = _EnableIf<!__is_allocator<_Compare>::value, void>,
|
||||||
class = enable_if_t<__is_allocator<_Allocator>::value, void>>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
map(initializer_list<pair<_Key, _Tp>>, _Compare = _Compare(), _Allocator = _Allocator())
|
map(initializer_list<pair<_Key, _Tp>>, _Compare = _Compare(), _Allocator = _Allocator())
|
||||||
-> map<remove_const_t<_Key>, _Tp, _Compare, _Allocator>;
|
-> map<remove_const_t<_Key>, _Tp, _Compare, _Allocator>;
|
||||||
|
|
||||||
template<class _InputIterator, class _Allocator,
|
template<class _InputIterator, class _Allocator,
|
||||||
class = enable_if_t<__is_allocator<_Allocator>::value, void>>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
map(_InputIterator, _InputIterator, _Allocator)
|
map(_InputIterator, _InputIterator, _Allocator)
|
||||||
-> map<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>,
|
-> map<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>,
|
||||||
less<__iter_key_type<_InputIterator>>, _Allocator>;
|
less<__iter_key_type<_InputIterator>>, _Allocator>;
|
||||||
|
|
||||||
template<class _Key, class _Tp, class _Allocator,
|
template<class _Key, class _Tp, class _Allocator,
|
||||||
class = enable_if_t<__is_allocator<_Allocator>::value, void>>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
map(initializer_list<pair<_Key, _Tp>>, _Allocator)
|
map(initializer_list<pair<_Key, _Tp>>, _Allocator)
|
||||||
-> map<remove_const_t<_Key>, _Tp, less<remove_const_t<_Key>>, _Allocator>;
|
-> map<remove_const_t<_Key>, _Tp, less<remove_const_t<_Key>>, _Allocator>;
|
||||||
#endif
|
#endif
|
||||||
|
@ -2131,26 +2131,26 @@ private:
|
||||||
#ifndef _LIBCPP_HAS_NO_DEDUCTION_GUIDES
|
#ifndef _LIBCPP_HAS_NO_DEDUCTION_GUIDES
|
||||||
template<class _InputIterator, class _Compare = less<__iter_key_type<_InputIterator>>,
|
template<class _InputIterator, class _Compare = less<__iter_key_type<_InputIterator>>,
|
||||||
class _Allocator = allocator<__iter_to_alloc_type<_InputIterator>>,
|
class _Allocator = allocator<__iter_to_alloc_type<_InputIterator>>,
|
||||||
class = enable_if_t<!__is_allocator<_Compare>::value, void>,
|
class = _EnableIf<!__is_allocator<_Compare>::value, void>,
|
||||||
class = enable_if_t<__is_allocator<_Allocator>::value, void>>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
multimap(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator())
|
multimap(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator())
|
||||||
-> multimap<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>, _Compare, _Allocator>;
|
-> multimap<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>, _Compare, _Allocator>;
|
||||||
|
|
||||||
template<class _Key, class _Tp, class _Compare = less<remove_const_t<_Key>>,
|
template<class _Key, class _Tp, class _Compare = less<remove_const_t<_Key>>,
|
||||||
class _Allocator = allocator<pair<const _Key, _Tp>>,
|
class _Allocator = allocator<pair<const _Key, _Tp>>,
|
||||||
class = enable_if_t<!__is_allocator<_Compare>::value, void>,
|
class = _EnableIf<!__is_allocator<_Compare>::value, void>,
|
||||||
class = enable_if_t<__is_allocator<_Allocator>::value, void>>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
multimap(initializer_list<pair<_Key, _Tp>>, _Compare = _Compare(), _Allocator = _Allocator())
|
multimap(initializer_list<pair<_Key, _Tp>>, _Compare = _Compare(), _Allocator = _Allocator())
|
||||||
-> multimap<remove_const_t<_Key>, _Tp, _Compare, _Allocator>;
|
-> multimap<remove_const_t<_Key>, _Tp, _Compare, _Allocator>;
|
||||||
|
|
||||||
template<class _InputIterator, class _Allocator,
|
template<class _InputIterator, class _Allocator,
|
||||||
class = enable_if_t<__is_allocator<_Allocator>::value, void>>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
multimap(_InputIterator, _InputIterator, _Allocator)
|
multimap(_InputIterator, _InputIterator, _Allocator)
|
||||||
-> multimap<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>,
|
-> multimap<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>,
|
||||||
less<__iter_key_type<_InputIterator>>, _Allocator>;
|
less<__iter_key_type<_InputIterator>>, _Allocator>;
|
||||||
|
|
||||||
template<class _Key, class _Tp, class _Allocator,
|
template<class _Key, class _Tp, class _Allocator,
|
||||||
class = enable_if_t<__is_allocator<_Allocator>::value, void>>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
multimap(initializer_list<pair<_Key, _Tp>>, _Allocator)
|
multimap(initializer_list<pair<_Key, _Tp>>, _Allocator)
|
||||||
-> multimap<remove_const_t<_Key>, _Tp, less<remove_const_t<_Key>>, _Allocator>;
|
-> multimap<remove_const_t<_Key>, _Tp, less<remove_const_t<_Key>>, _Allocator>;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -852,26 +852,26 @@ public:
|
||||||
template<class _InputIterator,
|
template<class _InputIterator,
|
||||||
class _Compare = less<typename iterator_traits<_InputIterator>::value_type>,
|
class _Compare = less<typename iterator_traits<_InputIterator>::value_type>,
|
||||||
class _Allocator = allocator<typename iterator_traits<_InputIterator>::value_type>,
|
class _Allocator = allocator<typename iterator_traits<_InputIterator>::value_type>,
|
||||||
class = typename enable_if<__is_allocator<_Allocator>::value, void>::type,
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>,
|
||||||
class = typename enable_if<!__is_allocator<_Compare>::value, void>::type>
|
class = _EnableIf<!__is_allocator<_Compare>::value, void>>
|
||||||
set(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator())
|
set(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator())
|
||||||
-> set<typename iterator_traits<_InputIterator>::value_type, _Compare, _Allocator>;
|
-> set<typename iterator_traits<_InputIterator>::value_type, _Compare, _Allocator>;
|
||||||
|
|
||||||
template<class _Key, class _Compare = less<_Key>,
|
template<class _Key, class _Compare = less<_Key>,
|
||||||
class _Allocator = allocator<_Key>,
|
class _Allocator = allocator<_Key>,
|
||||||
class = typename enable_if<__is_allocator<_Allocator>::value, void>::type,
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>,
|
||||||
class = typename enable_if<!__is_allocator<_Compare>::value, void>::type>
|
class = _EnableIf<!__is_allocator<_Compare>::value, void>>
|
||||||
set(initializer_list<_Key>, _Compare = _Compare(), _Allocator = _Allocator())
|
set(initializer_list<_Key>, _Compare = _Compare(), _Allocator = _Allocator())
|
||||||
-> set<_Key, _Compare, _Allocator>;
|
-> set<_Key, _Compare, _Allocator>;
|
||||||
|
|
||||||
template<class _InputIterator, class _Allocator,
|
template<class _InputIterator, class _Allocator,
|
||||||
class = typename enable_if<__is_allocator<_Allocator>::value, void>::type>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
set(_InputIterator, _InputIterator, _Allocator)
|
set(_InputIterator, _InputIterator, _Allocator)
|
||||||
-> set<typename iterator_traits<_InputIterator>::value_type,
|
-> set<typename iterator_traits<_InputIterator>::value_type,
|
||||||
less<typename iterator_traits<_InputIterator>::value_type>, _Allocator>;
|
less<typename iterator_traits<_InputIterator>::value_type>, _Allocator>;
|
||||||
|
|
||||||
template<class _Key, class _Allocator,
|
template<class _Key, class _Allocator,
|
||||||
class = typename enable_if<__is_allocator<_Allocator>::value, void>::type>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
set(initializer_list<_Key>, _Allocator)
|
set(initializer_list<_Key>, _Allocator)
|
||||||
-> set<_Key, less<_Key>, _Allocator>;
|
-> set<_Key, less<_Key>, _Allocator>;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1377,26 +1377,26 @@ public:
|
||||||
template<class _InputIterator,
|
template<class _InputIterator,
|
||||||
class _Compare = less<typename iterator_traits<_InputIterator>::value_type>,
|
class _Compare = less<typename iterator_traits<_InputIterator>::value_type>,
|
||||||
class _Allocator = allocator<typename iterator_traits<_InputIterator>::value_type>,
|
class _Allocator = allocator<typename iterator_traits<_InputIterator>::value_type>,
|
||||||
class = typename enable_if<__is_allocator<_Allocator>::value, void>::type,
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>,
|
||||||
class = typename enable_if<!__is_allocator<_Compare>::value, void>::type>
|
class = _EnableIf<!__is_allocator<_Compare>::value, void>>
|
||||||
multiset(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator())
|
multiset(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator())
|
||||||
-> multiset<typename iterator_traits<_InputIterator>::value_type, _Compare, _Allocator>;
|
-> multiset<typename iterator_traits<_InputIterator>::value_type, _Compare, _Allocator>;
|
||||||
|
|
||||||
template<class _Key, class _Compare = less<_Key>,
|
template<class _Key, class _Compare = less<_Key>,
|
||||||
class _Allocator = allocator<_Key>,
|
class _Allocator = allocator<_Key>,
|
||||||
class = typename enable_if<__is_allocator<_Allocator>::value, void>::type,
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>,
|
||||||
class = typename enable_if<!__is_allocator<_Compare>::value, void>::type>
|
class = _EnableIf<!__is_allocator<_Compare>::value, void>>
|
||||||
multiset(initializer_list<_Key>, _Compare = _Compare(), _Allocator = _Allocator())
|
multiset(initializer_list<_Key>, _Compare = _Compare(), _Allocator = _Allocator())
|
||||||
-> multiset<_Key, _Compare, _Allocator>;
|
-> multiset<_Key, _Compare, _Allocator>;
|
||||||
|
|
||||||
template<class _InputIterator, class _Allocator,
|
template<class _InputIterator, class _Allocator,
|
||||||
class = typename enable_if<__is_allocator<_Allocator>::value, void>::type>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
multiset(_InputIterator, _InputIterator, _Allocator)
|
multiset(_InputIterator, _InputIterator, _Allocator)
|
||||||
-> multiset<typename iterator_traits<_InputIterator>::value_type,
|
-> multiset<typename iterator_traits<_InputIterator>::value_type,
|
||||||
less<typename iterator_traits<_InputIterator>::value_type>, _Allocator>;
|
less<typename iterator_traits<_InputIterator>::value_type>, _Allocator>;
|
||||||
|
|
||||||
template<class _Key, class _Allocator,
|
template<class _Key, class _Allocator,
|
||||||
class = typename enable_if<__is_allocator<_Allocator>::value, void>::type>
|
class = _EnableIf<__is_allocator<_Allocator>::value, void>>
|
||||||
multiset(initializer_list<_Key>, _Allocator)
|
multiset(initializer_list<_Key>, _Allocator)
|
||||||
-> multiset<_Key, less<_Key>, _Allocator>;
|
-> multiset<_Key, less<_Key>, _Allocator>;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue