1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_BOX_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_BOX_HPP
- #include <boost/geometry/algorithms/dispatch/envelope.hpp>
- #include <boost/geometry/core/tags.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DISPATCH
- namespace dispatch
- {
- template <typename Box>
- struct envelope<Box, box_tag>
- {
- template<typename BoxIn, typename BoxOut, typename Strategy>
- static inline void apply(BoxIn const& box_in, BoxOut& mbr, Strategy const& strategy)
- {
- using strategy_t = decltype(strategy.envelope(box_in, mbr));
- strategy_t::apply(box_in, mbr);
- }
- };
- }
- #endif
- }}
- #endif
|