include/meltpooldg/utilities/concepts.hpp Source File

Developer Documentation: include/meltpooldg/utilities/concepts.hpp Source File
Developer Documentation
concepts.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <concepts>
4
5namespace MeltPoolDG
6{
12 template <typename T>
13 concept ArithmeticType = requires(T a, T b) {
14 {
15 a + b
16 } -> std::convertible_to<T>;
17 {
18 a - b
19 } -> std::convertible_to<T>;
20 {
21 a *b
22 } -> std::convertible_to<T>;
23 {
24 a / b
25 } -> std::convertible_to<T>;
26 };
27} // namespace MeltPoolDG
Definition concepts.hpp:13
Interface for a general preconditioner.
Definition boundary_condition_functions.hpp:17