CNL  2.0.2 (development)
Compositional Numeric Library
fraction.h
Go to the documentation of this file.
1 
2 // Copyright John McFarlane 2015 - 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file ../LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
9 
10 #if !defined(CNL_FRACTION_H)
11 #define CNL_FRACTION_H
12 
13 #include "_impl/fraction/abs.h"
14 #include "_impl/fraction/canonical.h"
15 #include "_impl/fraction/ctors.h"
16 #include "_impl/fraction/definition.h"
17 #include "_impl/fraction/gcd.h"
18 #include "_impl/fraction/hash.h"
19 #include "_impl/fraction/make_fraction.h"
20 #include "_impl/fraction/number.h"
21 #include "_impl/fraction/numbers.h"
22 #include "_impl/fraction/operators.h"
23 #include "_impl/fraction/reduce.h"
24 #include "_impl/fraction/to_string.h"
25 
27 namespace cnl {
28  using _impl::abs;
29  using _impl::canonical;
30  using _impl::make_fraction;
31  using _impl::reduce;
32  using _impl::to_string;
33 }
34 
35 #endif // CNL_FRACTION_H
cnl
compositional numeric library
Definition: abort.h:15
cnl::abs
constexpr auto abs(scaled_integer< Rep, Scale > const &x) noexcept -> decltype(-x)
absolute value
Definition: extras.h:43