template<typename type_t>
struct xtd::decrementable< type_t >
Represents the decrementable concept.
- Definition
template<typename type_t>
Definition decrementable.hpp:12
Definition pre_decrementable.hpp:12
- Header
#include <xtd/decrementable>
- Namespace
- xtd
- Library
- xtd.core
- Examples
- The following code shows how to use xtd::decrementable concept
#include <xtd/xtd>
auto print_is_decrementable(auto value) noexcept {
println(
"{} ({}) {} decrementable", value, type_of(value),
decrementable<
decltype(value)> ?
"is" :
"is not");
}
auto main() -> int {
print_is_decrementable(42);
print_is_decrementable(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: