]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/views/detail/boundary_view/interface.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / geometry / views / detail / boundary_view / interface.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
3 // Copyright (c) 2015, Oracle and/or its affiliates.
4
5 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
6
7 // Licensed under the Boost Software License version 1.0.
8 // http://www.boost.org/users/license.html
9
10 #ifndef BOOST_GEOMETRY_VIEWS_DETAIL_BOUNDARY_VIEW_INTERFACE_HPP
11 #define BOOST_GEOMETRY_VIEWS_DETAIL_BOUNDARY_VIEW_INTERFACE_HPP
12
13 #include <boost/geometry/core/tag.hpp>
14 #include <boost/geometry/algorithms/not_implemented.hpp>
15
16
17 namespace boost { namespace geometry
18 {
19
20
21 #ifndef DOXYGEN_NO_DISPATCH
22 namespace detail_dispatch
23 {
24
25 template <typename Geometry, typename Tag = typename tag<Geometry>::type>
26 struct boundary_view
27 : not_implemented<Tag>
28 {};
29
30 } // namespace detail_dispatch
31 #endif // DOXYGEN_NO_DISPATCH
32
33
34 #ifndef DOXYGEN_NO_DETAIL
35 namespace detail
36 {
37
38 template <typename Geometry>
39 struct boundary_view
40 : detail_dispatch::boundary_view<Geometry>
41 {
42 explicit boundary_view(Geometry& geometry)
43 : detail_dispatch::boundary_view<Geometry>(geometry)
44 {}
45 };
46
47 } // namespace detail
48 #endif // DOXYGEN_NO_DETAIL
49
50
51 #ifndef DOXYGEN_NO_TRAITS_SPECIALIZATIONS
52 namespace traits
53 {
54
55 template <typename Geometry>
56 struct tag< geometry::detail::boundary_view<Geometry> >
57 {
58 typedef typename detail_dispatch::boundary_view
59 <
60 Geometry
61 >::tag_type type;
62 };
63
64 } // namespace traits
65 #endif // DOXYGEN_NO_TRAITS_SPECIALIZATIONS
66
67
68 }} // namespace boost::geometry
69
70 #endif // BOOST_GEOMETRY_VIEWS_DETAIL_BOUNDARY_VIEW_INTERFACE_HPP