You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (n <= MaximumFactorialNumber)
{
return Internal::_factorials[n];
}
else
{
throwstd::out_of_range(std::string("Only numbers from 0 to ").append(std::to_string(MaximumFactorialNumber)).append("are supported by unsigned integer with 64 bits length."));
}
And
if (n <= MaximumFactorialNumber) [[likely]]
{
return Internal::_factorials[n];
}
else [[unlikely]]
{
throwstd::out_of_range(std::string("Only numbers from 0 to ").append(std::to_string(MaximumFactorialNumber)).append("are supported by unsigned integer with 64 bits length."));
}
The text was updated successfully, but these errors were encountered:
See the new attribute [[likely]]
compare (see this link)
And
The text was updated successfully, but these errors were encountered: