]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/geometry/algorithms/detail/expand/segment.hpp
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / boost / boost / geometry / algorithms / detail / expand / segment.hpp
CommitLineData
7c673cae
FG
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
20effc67
TL
8// This file was modified by Oracle on 2015-2020.
9// Modifications copyright (c) 2015-2020, Oracle and/or its affiliates.
7c673cae 10
b32b8144 11// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
7c673cae 12// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
b32b8144 13// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7c673cae
FG
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_SEGMENT_HPP
20#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_SEGMENT_HPP
21
7c673cae 22
92f5a8d4 23#include <boost/core/ignore_unused.hpp>
7c673cae
FG
24
25#include <boost/geometry/algorithms/dispatch/expand.hpp>
26
92f5a8d4 27#include <boost/geometry/core/tags.hpp>
7c673cae 28
7c673cae 29
92f5a8d4 30namespace boost { namespace geometry
7c673cae 31{
7c673cae
FG
32
33#ifndef DOXYGEN_NO_DISPATCH
34namespace dispatch
35{
36
7c673cae
FG
37template
38<
92f5a8d4 39 typename Box, typename Segment
7c673cae
FG
40>
41struct expand
42 <
43 Box, Segment,
92f5a8d4 44 box_tag, segment_tag
b32b8144 45 >
7c673cae 46{
92f5a8d4
TL
47 template <typename Strategy>
48 static inline void apply(Box& box,
49 Segment const& segment,
50 Strategy const& strategy)
51 {
20effc67 52 strategy.expand(box, segment).apply(box, segment);
92f5a8d4 53 }
7c673cae
FG
54};
55
7c673cae
FG
56
57} // namespace dispatch
58#endif // DOXYGEN_NO_DISPATCH
59
60}} // namespace boost::geometry
61
b32b8144 62
7c673cae 63#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_SEGMENT_HPP