CNL
2.0.2 (development)
Compositional Numeric Library
Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Typedefs
Classes
Class List
Class Hierarchy
Class Members
All
Functions
Variables
Typedefs
Files
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
Pages
tag_of.h
1
2
// Copyright John McFarlane 2019.
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_IMPL_SCALED_INTEGER_TAG_OF_H)
8
#define CNL_IMPL_SCALED_INTEGER_TAG_OF_H
9
10
#include "../num_traits/tag_of.h"
11
#include "definition.h"
12
13
#include <type_traits>
14
16
namespace
cnl
{
17
template
<
typename
Rep,
class
Scale>
18
struct
tag_of<
scaled_integer
<Rep, Scale>> : std::type_identity<Scale> {
19
};
20
}
21
22
#endif // CNL_IMPL_SCALED_INTEGER_TAG_OF_H
cnl
compositional numeric library
Definition:
abort.h:15
cnl::scaled_integer
_impl::wrapper< Rep, Scale > scaled_integer
literal real number approximation that uses fixed-point arithmetic
Definition:
definition.h:52
cnl
_impl
scaled_integer
tag_of.h
Generated by
1.8.17