template<typename type_t>
struct xtd::arithmeticable< type_t >
Represents the arithmeticable concept.
- Definition
template<typename type_t>
Definition addable.hpp:12
Definition arithmeticable.hpp:14
Definition divisible.hpp:12
Definition multipliable.hpp:12
Definition subtractable.hpp:12
- Header
#include <xtd/arithmeticable>
- Namespace
- xtd
- Library
- xtd.core
- Examples
- The following code shows how to use xtd::arithmeticable concept
#include <xtd/xtd>
auto print_is_arithmeticable(auto value) noexcept {
println(
"{} ({}) {} arithmeticable", value, type_of(value),
arithmeticable<
decltype(value)> ?
"is" :
"is not");
}
auto main() -> int {
print_is_arithmeticable(42);
print_is_arithmeticable(
time_span {1, 2, 3});
print_is_arithmeticable(version {1, 2, 3});
}
Represents a time interval.
Definition time_span.hpp:29
void println()
Writes the current line terminator to the standard output stream using the specified format informati...
Definition println.hpp:167
The documentation for this struct was generated from the following file: