libfxd
0.2.dev
A fixed-point library for C++.
Main Page
Related Pages
Namespaces
Concepts
Classes
Files
Examples
File List
File Members
Loading...
Searching...
No Matches
concepts.hpp
Go to the documentation of this file.
1
/*
2
* libfxd - a fixed-point library for C++
3
*
4
* Copyright 2023 Daniel K. O.
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
#ifndef LIBFXD_CONCEPTS_HPP
9
#define LIBFXD_CONCEPTS_HPP
10
11
12
#include "
traits.hpp
"
13
14
15
namespace
fxd
{
16
18
template
<
typename
T>
19
concept
fixed_point
= is_fixed_point_v<T>;
20
21
23
template
<
typename
T>
24
concept
unsigned_fixed_point
= is_unsigned_fixed_point_v<T>;
25
26
28
template
<
typename
T>
29
concept
signed_fixed_point
= is_signed_fixed_point_v<T>;
30
31
32
}
33
34
35
#endif
fxd::fixed_point
Concept to match any fxd::fixed
Definition:
concepts.hpp:19
fxd::signed_fixed_point
Concept to match only signed fxd::fixed
Definition:
concepts.hpp:29
fxd::unsigned_fixed_point
Concept to match only unsigned fxd::fixed
Definition:
concepts.hpp:24
fxd
This is the namespace where the entire library is defined.
Definition:
casting.hpp:19
traits.hpp
include
fxd
concepts.hpp
Generated by
1.9.6