File tree 5 files changed +24
-16
lines changed
5 files changed +24
-16
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,6 @@ mtent12.txt
17
17
tests /benchmark-range /*
18
18
! tests /benchmark-range /* .cpp
19
19
! tests /benchmark-range /* .hpp
20
- build
20
+ build
21
+ cmake-build- * /*
22
+ .idea /*
Original file line number Diff line number Diff line change @@ -398,10 +398,10 @@ template <size_t Capacity> class point_set {
398
398
auto first = begin ();
399
399
auto last = end ();
400
400
auto it = first;
401
- size_t count = std::distance (first, last);
402
- while (count > 0 ) {
401
+ auto count = std::distance (first, last);
402
+ while (count != 0 ) {
403
403
it = first;
404
- size_t step = count / 2 ;
404
+ auto step = count / 2 ;
405
405
std::advance (it, step);
406
406
if (*it < obj) {
407
407
first = ++it;
Original file line number Diff line number Diff line change @@ -97,8 +97,9 @@ template <size_t Id, typename Name = void> struct captured_content {
97
97
} else {
98
98
return static_cast <size_t >(std::distance (begin (), end ()));
99
99
}
100
- #endif
100
+ #else
101
101
return static_cast <size_t >(std::distance (begin (), end ()));
102
+ #endif
102
103
}
103
104
104
105
#if __has_include(<charconv>)
@@ -126,8 +127,9 @@ template <size_t Id, typename Name = void> struct captured_content {
126
127
} else {
127
128
return std::basic_string<char_type>(begin (), end ());
128
129
}
129
- #endif
130
+ #else
130
131
return std::basic_string<char_type>(begin (), end ());
132
+ #endif
131
133
}
132
134
133
135
constexpr CTRE_FORCE_INLINE auto view () const noexcept {
Original file line number Diff line number Diff line change @@ -3004,8 +3004,9 @@ template <size_t Id, typename Name = void> struct captured_content {
3004
3004
} else {
3005
3005
return static_cast<size_t>(std::distance(begin(), end()));
3006
3006
}
3007
- #endif
3007
+ #else
3008
3008
return static_cast<size_t>(std::distance(begin(), end()));
3009
+ #endif
3009
3010
}
3010
3011
3011
3012
#if __has_include(<charconv>)
@@ -3033,8 +3034,9 @@ template <size_t Id, typename Name = void> struct captured_content {
3033
3034
} else {
3034
3035
return std::basic_string<char_type>(begin(), end());
3035
3036
}
3036
- #endif
3037
+ #else
3037
3038
return std::basic_string<char_type>(begin(), end());
3039
+ #endif
3038
3040
}
3039
3041
3040
3042
constexpr CTRE_FORCE_INLINE auto view() const noexcept {
@@ -3834,10 +3836,10 @@ template <size_t Capacity> class point_set {
3834
3836
auto first = begin();
3835
3837
auto last = end();
3836
3838
auto it = first;
3837
- size_t count = std::distance(first, last);
3838
- while (count > 0) {
3839
+ auto count = std::distance(first, last);
3840
+ while (count != 0) {
3839
3841
it = first;
3840
- size_t step = count / 2;
3842
+ auto step = count / 2;
3841
3843
std::advance(it, step);
3842
3844
if (*it < obj) {
3843
3845
first = ++it;
Original file line number Diff line number Diff line change @@ -3001,8 +3001,9 @@ template <size_t Id, typename Name = void> struct captured_content {
3001
3001
} else {
3002
3002
return static_cast <size_t >(std::distance (begin (), end ()));
3003
3003
}
3004
- #endif
3004
+ #else
3005
3005
return static_cast <size_t >(std::distance (begin (), end ()));
3006
+ #endif
3006
3007
}
3007
3008
3008
3009
#if __has_include(<charconv>)
@@ -3030,8 +3031,9 @@ template <size_t Id, typename Name = void> struct captured_content {
3030
3031
} else {
3031
3032
return std::basic_string<char_type>(begin (), end ());
3032
3033
}
3033
- #endif
3034
+ #else
3034
3035
return std::basic_string<char_type>(begin (), end ());
3036
+ #endif
3035
3037
}
3036
3038
3037
3039
constexpr CTRE_FORCE_INLINE auto view () const noexcept {
@@ -3831,10 +3833,10 @@ template <size_t Capacity> class point_set {
3831
3833
auto first = begin ();
3832
3834
auto last = end ();
3833
3835
auto it = first;
3834
- size_t count = std::distance (first, last);
3835
- while (count > 0 ) {
3836
+ auto count = std::distance (first, last);
3837
+ while (count != 0 ) {
3836
3838
it = first;
3837
- size_t step = count / 2 ;
3839
+ auto step = count / 2 ;
3838
3840
std::advance (it, step);
3839
3841
if (*it < obj) {
3840
3842
first = ++it;
You can’t perform that action at this time.
0 commit comments