Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
NumericConcepts.hpp
Go to the documentation of this file.
1#pragma once
2#include <concepts>
3
4namespace fishnet::math{
5
6template<typename T>
7concept Number = std::integral<T> || std::floating_point<T>;
8
9template<typename From, typename To>
10concept convertible_without_loss = requires(From f){To{f};};
11
13using DEFAULT_NUMERIC = double;
14using DEFAULT_INTEGRAL = int;
15
16} // fishnet::math
17
18
19
20
Definition NumericConcepts.hpp:7
Definition NumericConcepts.hpp:10
Definition NumericConcepts.hpp:4
double DEFAULT_NUMERIC
Definition NumericConcepts.hpp:13
int DEFAULT_INTEGRAL
Definition NumericConcepts.hpp:14
double DEFAULT_FLOATING_POINT
Definition NumericConcepts.hpp:12