Skip to content

Commit 9d4268f

Browse files
committed
comment
1 parent 15069f0 commit 9d4268f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

libcxx/include/__algorithm/radix_sort.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,9 @@ using __unsigned_integer_of_size_t _LIBCPP_NODEBUG = typename __unsigned_integer
337337
template <class _Sc>
338338
using __unsigned_representation_for_t _LIBCPP_NODEBUG = __unsigned_integer_of_size_t<sizeof(_Sc)>;
339339

340-
// Represent a scalar type as an ordered integer
341-
342-
// The function is defined for ordered scalar types: integers, floating-point numbers, pointers, and enums.
340+
// The function `__to_ordered_integral` is defined for integers and IEEE 754 floating-point numbers.
343341
// Returns an integer representation such that for any `x` and `y` such that `x < y`, the expression
344-
// `__to_ordered_integral(x) < __to_ordered_integral(y)` is true, where `x`, `y` are values of the `Scalar` type.
345-
// __unsigned_representation_for_t<_Scalar> __to_ordered_integral(_Scalar);
346-
342+
// `__to_ordered_integral(x) < __to_ordered_integral(y)` is true, where `x`, `y` are integers or IEEE 754 floats.
347343
template <class _Integral, enable_if_t< is_integral<_Integral>::value, int> = 0>
348344
_LIBCPP_HIDE_FROM_ABI constexpr auto __to_ordered_integral(_Integral __n) {
349345
return __n;

0 commit comments

Comments
 (0)