1// Copyright John Maddock 2008.
2
3// Use, modification and distribution are subject to the
4// Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt
6// or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8#ifndef BOOST_MATH_SPECIAL_ROUND_FWD_HPP
9#define BOOST_MATH_SPECIAL_ROUND_FWD_HPP
10
11#include <boost/math/tools/config.hpp>
12#include <boost/math/tools/promotion.hpp>
13
14#ifdef _MSC_VER
15#pragma once
16#endif
17
18namespace boost
19{
20 namespace math
21 {
22
23 template <class T, class Policy>
24 typename tools::promote_args<T>::type trunc(const T& v, const Policy& pol);
25 template <class T>
26 typename tools::promote_args<T>::type trunc(const T& v);
27 template <class T, class Policy>
28 int itrunc(const T& v, const Policy& pol);
29 template <class T>
30 int itrunc(const T& v);
31 template <class T, class Policy>
32 long ltrunc(const T& v, const Policy& pol);
33 template <class T>
34 long ltrunc(const T& v);
35 template <class T, class Policy>
36 long long lltrunc(const T& v, const Policy& pol);
37 template <class T>
38 long long lltrunc(const T& v);
39 template <class T, class Policy>
40 typename tools::promote_args<T>::type round(const T& v, const Policy& pol);
41 template <class T>
42 typename tools::promote_args<T>::type round(const T& v);
43 template <class T, class Policy>
44 int iround(const T& v, const Policy& pol);
45 template <class T>
46 int iround(const T& v);
47 template <class T, class Policy>
48 long lround(const T& v, const Policy& pol);
49 template <class T>
50 long lround(const T& v);
51 template <class T, class Policy>
52 long long llround(const T& v, const Policy& pol);
53 template <class T>
54 long long llround(const T& v);
55 template <class T, class Policy>
56 T modf(const T& v, T* ipart, const Policy& pol);
57 template <class T>
58 T modf(const T& v, T* ipart);
59 template <class T, class Policy>
60 T modf(const T& v, int* ipart, const Policy& pol);
61 template <class T>
62 T modf(const T& v, int* ipart);
63 template <class T, class Policy>
64 T modf(const T& v, long* ipart, const Policy& pol);
65 template <class T>
66 T modf(const T& v, long* ipart);
67 template <class T, class Policy>
68 T modf(const T& v, long long* ipart, const Policy& pol);
69 template <class T>
70 T modf(const T& v, long long* ipart);
71 }
72}
73
74#undef BOOST_MATH_STD_USING
75#define BOOST_MATH_STD_USING BOOST_MATH_STD_USING_CORE\
76 using boost::math::round;\
77 using boost::math::iround;\
78 using boost::math::lround;\
79 using boost::math::trunc;\
80 using boost::math::itrunc;\
81 using boost::math::ltrunc;\
82 using boost::math::modf;
83
84
85#endif // BOOST_MATH_SPECIAL_ROUND_FWD_HPP
86
87

source code of boost/libs/math/include/boost/math/special_functions/detail/round_fwd.hpp