@@ -190,27 +190,27 @@ struct _Char_traits { // properties of a string or stream element
190
190
}
191
191
}
192
192
193
- _NODISCARD static constexpr bool eq(const _Elem& _Left, const _Elem& _Right) noexcept {
193
+ _NODISCARD static constexpr bool eq(const _Elem _Left, const _Elem _Right) noexcept {
194
194
return _Left == _Right;
195
195
}
196
196
197
- _NODISCARD static constexpr bool lt(const _Elem& _Left, const _Elem& _Right) noexcept {
197
+ _NODISCARD static constexpr bool lt(const _Elem _Left, const _Elem _Right) noexcept {
198
198
return _Left < _Right;
199
199
}
200
200
201
- _NODISCARD static constexpr _Elem to_char_type(const int_type& _Meta) noexcept {
201
+ _NODISCARD static constexpr _Elem to_char_type(const int_type _Meta) noexcept {
202
202
return static_cast<_Elem>(_Meta);
203
203
}
204
204
205
- _NODISCARD static constexpr int_type to_int_type(const _Elem& _Ch) noexcept {
205
+ _NODISCARD static constexpr int_type to_int_type(const _Elem _Ch) noexcept {
206
206
return static_cast<int_type>(_Ch);
207
207
}
208
208
209
- _NODISCARD static constexpr bool eq_int_type(const int_type& _Left, const int_type& _Right) noexcept {
209
+ _NODISCARD static constexpr bool eq_int_type(const int_type _Left, const int_type _Right) noexcept {
210
210
return _Left == _Right;
211
211
}
212
212
213
- _NODISCARD static constexpr int_type not_eof(const int_type& _Meta) noexcept {
213
+ _NODISCARD static constexpr int_type not_eof(const int_type _Meta) noexcept {
214
214
return _Meta != eof() ? _Meta : !eof();
215
215
}
216
216
@@ -302,27 +302,27 @@ public:
302
302
_Left = _Right;
303
303
}
304
304
305
- _NODISCARD static constexpr bool eq(const _Elem& _Left, const _Elem& _Right) noexcept {
305
+ _NODISCARD static constexpr bool eq(const _Elem _Left, const _Elem _Right) noexcept {
306
306
return _Left == _Right;
307
307
}
308
308
309
- _NODISCARD static constexpr bool lt(const _Elem& _Left, const _Elem& _Right) noexcept {
309
+ _NODISCARD static constexpr bool lt(const _Elem _Left, const _Elem _Right) noexcept {
310
310
return _Left < _Right;
311
311
}
312
312
313
- _NODISCARD static constexpr _Elem to_char_type(const int_type& _Meta) noexcept {
313
+ _NODISCARD static constexpr _Elem to_char_type(const int_type _Meta) noexcept {
314
314
return _Meta;
315
315
}
316
316
317
- _NODISCARD static constexpr int_type to_int_type(const _Elem& _Ch) noexcept {
317
+ _NODISCARD static constexpr int_type to_int_type(const _Elem _Ch) noexcept {
318
318
return _Ch;
319
319
}
320
320
321
- _NODISCARD static constexpr bool eq_int_type(const int_type& _Left, const int_type& _Right) noexcept {
321
+ _NODISCARD static constexpr bool eq_int_type(const int_type _Left, const int_type _Right) noexcept {
322
322
return _Left == _Right;
323
323
}
324
324
325
- _NODISCARD static constexpr int_type not_eof(const int_type& _Meta) noexcept {
325
+ _NODISCARD static constexpr int_type not_eof(const int_type _Meta) noexcept {
326
326
return _Meta != eof() ? _Meta : static_cast<int_type>(!eof());
327
327
}
328
328
@@ -446,27 +446,27 @@ public:
446
446
_Left = _Right;
447
447
}
448
448
449
- _NODISCARD static constexpr bool eq(const _Elem& _Left, const _Elem& _Right) noexcept {
449
+ _NODISCARD static constexpr bool eq(const _Elem _Left, const _Elem _Right) noexcept {
450
450
return _Left == _Right;
451
451
}
452
452
453
- _NODISCARD static constexpr bool lt(const _Elem& _Left, const _Elem& _Right) noexcept {
453
+ _NODISCARD static constexpr bool lt(const _Elem _Left, const _Elem _Right) noexcept {
454
454
return static_cast<unsigned char>(_Left) < static_cast<unsigned char>(_Right);
455
455
}
456
456
457
- _NODISCARD static constexpr _Elem to_char_type(const int_type& _Meta) noexcept {
457
+ _NODISCARD static constexpr _Elem to_char_type(const int_type _Meta) noexcept {
458
458
return static_cast<_Elem>(_Meta);
459
459
}
460
460
461
- _NODISCARD static constexpr int_type to_int_type(const _Elem& _Ch) noexcept {
461
+ _NODISCARD static constexpr int_type to_int_type(const _Elem _Ch) noexcept {
462
462
return static_cast<unsigned char>(_Ch);
463
463
}
464
464
465
- _NODISCARD static constexpr bool eq_int_type(const int_type& _Left, const int_type& _Right) noexcept {
465
+ _NODISCARD static constexpr bool eq_int_type(const int_type _Left, const int_type _Right) noexcept {
466
466
return _Left == _Right;
467
467
}
468
468
469
- _NODISCARD static constexpr int_type not_eof(const int_type& _Meta) noexcept {
469
+ _NODISCARD static constexpr int_type not_eof(const int_type _Meta) noexcept {
470
470
return _Meta != eof() ? _Meta : !eof();
471
471
}
472
472
0 commit comments