template<typename type_t>
struct xtd::subtractable< type_t >
Concept subtractable.
- Definition
template<typename type_t>
Definition subtractable.hpp:12
std::remove_cvref_t< value_t > raw_type
Represents a raw type alias equivalent to std::remove_cvref_t<value_t>.
Definition raw_type.hpp:25
@ a
The A key.
Definition console_key.hpp:88
@ b
The B key.
Definition console_key.hpp:90
- Header
#include <xtd/subtractable>
- Namespace
- xtd
- Library
- xtd.core
- Examples
- The following code shows how to use xtd::subtractable concept
#include <xtd/xtd>
auto print_is_subtractable(auto value) noexcept {
println(
"{} ({}) {} subtractable", value, type_of(value),
subtractable<
decltype(value)> ?
"is" :
"is not");
}
auto main() -> int {
print_is_subtractable(42);
print_is_subtractable(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: