CNL  2.0.2 (development)
Compositional Numeric Library
static_integer.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 
7 #if !defined(CNL_STATIC_INTEGER_H)
8 #define CNL_STATIC_INTEGER_H
9 
12 
13 #include "_impl/overflow/is_overflow_tag.h"
14 #include "_impl/rounding/is_rounding_tag.h"
15 #include "_impl/static_integer.h"
16 
18 namespace cnl {
27  template<
28  int Digits = digits_v<int>, rounding_tag RoundingTag = nearest_rounding_tag,
29  overflow_tag OverflowTag = undefined_overflow_tag, class Narrowest = int>
30  using static_integer = _impl::static_integer<Digits, RoundingTag, OverflowTag, Narrowest>;
31 
33  using _impl::make_static_integer;
34 }
35 
36 #endif // CNL_STATIC_INTEGER_H
cnl
compositional numeric library
Definition: abort.h:15
cnl::static_integer
_impl::static_integer< Digits, RoundingTag, OverflowTag, Narrowest > static_integer
a general-purpose integer type
Definition: static_integer.h:30