numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
comparable.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
20#pragma once
21
23
25
32template <typename T, typename U>
33concept less_than_comparable = requires(const T& t, const U& u) {
35};
36
43template <typename T, typename U>
44concept less_than_or_equal_to_comparable = requires(const T& t, const U& u) {
46};
47
54template <typename T, typename U>
55concept greater_than_comparable = requires(const T& t, const U& u) {
57};
58
65template <typename T, typename U>
66concept greater_than_or_equal_to_comparable = requires(const T& t, const U& u) {
68};
69
76template <typename T, typename U>
77concept equal_to_comparable = requires(const T& t, const U& u) {
79};
80
87template <typename T, typename U>
88concept not_equal_to_comparable = requires(const T& t, const U& u) {
90};
91
98template <typename T, typename U>
103
104} // namespace num_collect::util::concepts
Concept of comparable types.
Definition comparable.h:99
Concept of comparable types with operator==.
Definition comparable.h:77
Concept of comparable types with operator>.
Definition comparable.h:55
Concept of comparable types with operator>=.
Definition comparable.h:66
Concept of comparable types with operator<.
Definition comparable.h:33
Concept of comparable types with operator<=.
Definition comparable.h:44
Concept of comparable types with operator!=.
Definition comparable.h:88
Definition of decayed_to concept.
Namespace of C++ concepts.
Definition comparable.h:24