C++ Logo

std-proposals

Advanced search

[std-proposals] std::arithmetic (concept)

From: Tymi <tymi.cpp_at_[hidden]>
Date: Sat, 12 Apr 2025 07:41:28 +0200
Seems like that concept is missing, I would like to have it. We already
have std::integral anyway... And std::is_arithmetic...

Possible implementation:
```cpp
template <typename T>
concept arithmetic = is_arithmetic_v<T>;
```
Yeah it would be zero WG21 work and little SG work I guess..

Tymi.

Received on 2025-04-12 05:41:40