File indexing completed on 2025-01-18 09:35:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_PAIRS_HPP
0012 #define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_PAIRS_HPP
0013
0014 namespace boost { namespace geometry { namespace index {
0015
0016 namespace detail { namespace rtree {
0017
0018 template <typename First, typename Pointer>
0019 class ptr_pair
0020 {
0021 public:
0022 typedef First first_type;
0023 typedef Pointer second_type;
0024 ptr_pair(First const& f, Pointer s) : first(f), second(s) {}
0025
0026 first_type first;
0027 second_type second;
0028 };
0029
0030 template <typename First, typename Pointer> inline
0031 ptr_pair<First, Pointer> make_ptr_pair(First const& f, Pointer s)
0032 {
0033 return ptr_pair<First, Pointer>(f, s);
0034 }
0035
0036 }}
0037
0038 }}}
0039
0040 #endif