Skip to content

Commit caf34bf

Browse files
use new macros
1 parent 171cd5a commit caf34bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcxx/include/deque

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2543,7 +2543,7 @@ inline void deque<_Tp, _Allocator>::clear() _NOEXCEPT {
25432543
}
25442544

25452545
template <class _Tp, class _Allocator>
2546-
inline _LIBCPP_HIDE_FROM_ABI constexpr bool
2546+
inline _LIBCPP_CONSTEXPR_SINCE_CXX26 constexpr bool
25472547
operator==(const deque<_Tp, _Allocator>& __x, const deque<_Tp, _Allocator>& __y) {
25482548
const typename deque<_Tp, _Allocator>::size_type __sz = __x.size();
25492549
return __sz == __y.size() && std::equal(__x.begin(), __x.end(), __y.begin());
@@ -2579,30 +2579,30 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator<=(const deque<_Tp, _Allocator>& __x,
25792579
# else // _LIBCPP_STD_VER <= 17
25802580

25812581
template <class _Tp, class _Allocator>
2582-
_LIBCPP_HIDE_FROM_ABI __synth_three_way_result<_Tp> constexpr
2582+
_LIBCPP_CONSTEXPR_SINCE_CXX26 __synth_three_way_result<_Tp> constexpr
25832583
operator<=>(const deque<_Tp, _Allocator>& __x, const deque<_Tp, _Allocator>& __y) {
25842584
return std::lexicographical_compare_three_way(__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
25852585
}
25862586

25872587
# endif // _LIBCPP_STD_VER <= 17
25882588

25892589
template <class _Tp, class _Allocator>
2590-
inline _LIBCPP_HIDE_FROM_ABI constexpr void swap(deque<_Tp, _Allocator>& __x, deque<_Tp, _Allocator>& __y)
2590+
inline _LIBCPP_CONSTEXPR_SINCE_CXX26 constexpr void swap(deque<_Tp, _Allocator>& __x, deque<_Tp, _Allocator>& __y)
25912591
_NOEXCEPT_(_NOEXCEPT_(__x.swap(__y))) {
25922592
__x.swap(__y);
25932593
}
25942594

25952595
# if _LIBCPP_STD_VER >= 20
25962596
template <class _Tp, class _Allocator, class _Up>
2597-
inline _LIBCPP_HIDE_FROM_ABI constexpr typename deque<_Tp, _Allocator>::size_type
2597+
inline _LIBCPP_CONSTEXPR_SINCE_CXX26 constexpr typename deque<_Tp, _Allocator>::size_type
25982598
erase(deque<_Tp, _Allocator>& __c, const _Up& __v) {
25992599
auto __old_size = __c.size();
26002600
__c.erase(std::remove(__c.begin(), __c.end(), __v), __c.end());
26012601
return __old_size - __c.size();
26022602
}
26032603

26042604
template <class _Tp, class _Allocator, class _Predicate>
2605-
inline _LIBCPP_HIDE_FROM_ABI constexpr typename deque<_Tp, _Allocator>::size_type
2605+
inline _LIBCPP_CONSTEXPR_SINCE_CXX26 constexpr typename deque<_Tp, _Allocator>::size_type
26062606
erase_if(deque<_Tp, _Allocator>& __c, _Predicate __pred) {
26072607
auto __old_size = __c.size();
26082608
__c.erase(std::remove_if(__c.begin(), __c.end(), __pred), __c.end());

0 commit comments

Comments
 (0)