1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2 
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
6 // Copyright (c) 2014-2015 Samuel Debionne, Grenoble, France.
7 
8 // This file was modified by Oracle on 2015-2020.
9 // Modifications copyright (c) 2015-2020, Oracle and/or its affiliates.
10 
11 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
12 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
13 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
14 
15 // Distributed under the Boost Software License, Version 1.0.
16 // (See accompanying file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
18 
19 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_BOX_HPP
20 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_BOX_HPP
21 
22 
23 #include <boost/geometry/algorithms/dispatch/expand.hpp>
24 
25 #include <boost/geometry/core/tags.hpp>
26 
27 
28 namespace boost { namespace geometry
29 {
30 
31 #ifndef DOXYGEN_NO_DISPATCH
32 namespace dispatch
33 {
34 
35 
36 // Box + box -> new box containing two input boxes
37 template
38 <
39     typename BoxOut, typename BoxIn
40 >
41 struct expand
42     <
43         BoxOut, BoxIn,
44         box_tag, box_tag
45     >
46 {
47     template <typename Strategy>
applyboost::geometry::dispatch::expand48     static inline void apply(BoxOut& box_out,
49                              BoxIn const& box_in,
50                              Strategy const& strategy)
51     {
52         // strategy.expand(box_out, box_in).apply(box_out, box_in);
53         using strategy_t = decltype(strategy.expand(box_out, box_in));
54         strategy_t::apply(box_out, box_in);
55     }
56 };
57 
58 
59 
60 } // namespace dispatch
61 #endif // DOXYGEN_NO_DISPATCH
62 
63 }} // namespace boost::geometry
64 
65 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_INDEXED_HPP
66