Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / geometry / policies / robustness / rescale_policy_tags.hpp
1 // Boost.Geometry
2
3 // Copyright (c) 2019-2019 Barend Gehrels, Amsterdam, the Netherlands.
4
5 // Use, modification and distribution is subject to the Boost Software License,
6 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8
9 #ifndef BOOST_GEOMETRY_POLICIES_ROBUSTNESS_RESCALE_POLICY_TYPE_HPP
10 #define BOOST_GEOMETRY_POLICIES_ROBUSTNESS_RESCALE_POLICY_TYPE_HPP
11
12 #include <boost/geometry/policies/robustness/no_rescale_policy.hpp>
13
14 namespace boost { namespace geometry
15 {
16
17 #ifndef DOXYGEN_NO_DETAIL
18 namespace detail
19 {
20
21 struct no_rescale_policy_tag {};
22 struct rescale_policy_tag {};
23
24 template <typename RobustPolicy>
25 struct rescale_policy_type
26 {
27     typedef rescale_policy_tag type;
28 };
29
30 // Specialization
31 template <>
32 struct rescale_policy_type<no_rescale_policy>
33 {
34     typedef no_rescale_policy_tag type;
35 };
36
37 } // namespace detail
38 #endif
39
40
41 }} // namespace boost::geometry
42
43 #endif // BOOST_GEOMETRY_POLICIES_ROBUSTNESS_RESCALE_POLICY_TYPE_HPP