Skip to content

Commit b75ddd7

Browse files
authored
Merge pull request #40 from mclow/cleanup.1
Minor cleanups
2 parents 4c4b7b0 + 3761958 commit b75ddd7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

libcxx/include/__memory/uninitialized_algorithms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ class _AllocatorDestroyRangeReverse {
539539
_Iter& __last_;
540540
};
541541

542-
#if _LIBCPP_STD_VER >= 20
542+
#if _LIBCPP_STD_VER >= 26
543543

544544
template <class _Tp>
545545
constexpr

libcxx/include/__utility/swap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void swap_value_representations(_Tp& __a, _Tp& __b) {
6262
// TODO: research better memswap algorithms
6363
char __buffer[__size];
6464
if constexpr (__chunk) {
65-
for (std::size_t n = 0; n < __chunk; n++, __aptr += __size, __bptr += __size) {
65+
for (std::size_t __n = 0; n < __chunk; __n++, __aptr += __size, __bptr += __size) {
6666
__builtin_memcpy(__buffer, __aptr, __size);
6767
__builtin_memmove(__aptr, __bptr, __size);
6868
__builtin_memmove(__bptr, __buffer, __size);

libcxx/include/vector

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ vector<_Tp, _Allocator>::erase(const_iterator __position) {
15761576
__position != end(), "vector::erase(iterator) called with a non-dereferenceable iterator");
15771577
difference_type __ps = __position - cbegin();
15781578
pointer __p = this->__begin_ + __ps;
1579-
#if _LIBCPP_STD_VER >= 20
1579+
#if _LIBCPP_STD_VER >= 26
15801580
if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
15811581
size_type __old_size = size();
15821582
// destroy the element at __p
@@ -1599,7 +1599,7 @@ vector<_Tp, _Allocator>::erase(const_iterator __first, const_iterator __last) {
15991599
_LIBCPP_ASSERT_VALID_INPUT_RANGE(__first <= __last, "vector::erase(first, last) called with invalid range");
16001600
pointer __p = this->__begin_ + (__first - begin());
16011601
if (__first != __last) {
1602-
#if _LIBCPP_STD_VER >= 20
1602+
#if _LIBCPP_STD_VER >= 26
16031603
if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
16041604
size_type __old_size = size();
16051605
size_type __count = __last - __first;
@@ -1643,7 +1643,7 @@ vector<_Tp, _Allocator>::insert(const_iterator __position, const_reference __x)
16431643
if (__p == this->__end_) {
16441644
__construct_one_at_end(__x);
16451645
} else {
1646-
#if _LIBCPP_STD_VER >= 20
1646+
#if _LIBCPP_STD_VER >= 26
16471647
if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
16481648
// Make space by trivially relocating everything
16491649
_ConstructTransaction __tx(*this, 1);
@@ -1683,7 +1683,7 @@ vector<_Tp, _Allocator>::insert(const_iterator __position, value_type&& __x) {
16831683
if (__p == this->__end_) {
16841684
__construct_one_at_end(std::move(__x));
16851685
} else {
1686-
#if _LIBCPP_STD_VER >= 20
1686+
#if _LIBCPP_STD_VER >= 26
16871687
if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
16881688
// Make space by trivially relocating everything
16891689
_ConstructTransaction __tx(*this, 1);
@@ -1718,7 +1718,7 @@ vector<_Tp, _Allocator>::emplace(const_iterator __position, _Args&&... __args) {
17181718
if (__p == this->__end_) {
17191719
__construct_one_at_end(std::forward<_Args>(__args)...);
17201720
} else {
1721-
#if _LIBCPP_STD_VER >= 20
1721+
#if _LIBCPP_STD_VER >= 26
17221722
if constexpr (is_trivially_relocatable_v<_Tp> || is_nothrow_move_constructible_v<_Tp>) {
17231723
// Make space by trivially relocating everything
17241724
_ConstructTransaction __tx(*this, 1);

0 commit comments

Comments
 (0)