Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:35:29

0001 // Boost.Geometry Index
0002 //
0003 // Pairs intended to be used internally in nodes.
0004 //
0005 // Copyright (c) 2011-2023 Adam Wulkiewicz, Lodz, Poland.
0006 //
0007 // Use, modification and distribution is subject to the Boost Software License,
0008 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
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 }} // namespace detail::rtree
0037 
0038 }}} // namespace boost::geometry::index
0039 
0040 #endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_PAIRS_HPP