You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
530 B

#pragma once
#include "detail/to_ordered_integral_impl.hpp"
struct to_ordered_integral_fn {
template <typename Arithmetic>
constexpr auto operator()(Arithmetic value) const
{
static_assert(std::is_integral_v<Arithmetic> || std::numeric_limits<Arithmetic>::is_iec559,
"Input type is not integral or floating point, nor satisfying IEEE 754 standard.");
return detail::to_ordered_integral_impl(value);
}
};
static constexpr auto to_ordered_integral = to_ordered_integral_fn{};