xtd 0.2.0
Loading...
Searching...
No Matches
subtractable.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "raw_type.hpp"
6#include <concepts>
7
9namespace xtd {
10 // Since Doxygen does not work properly with the C++20 concept, the documentation for this concept is declared in xtd/subtractable_.hpp
11 template<typename type_t>
12 concept subtractable = requires(const xtd::raw_type<type_t>& a, const xtd::raw_type<type_t>& b) {
13 {a - b} -> std::same_as<xtd::raw_type<type_t>>;
14 };
15}
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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::raw_type alias.