// Boost.Geometry (aka GGL, Generic Geometry Library) // QuickBook Example // Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //[interior_type //`Shows how to use the interior_type metafunction #include #include #include #include #include #include BOOST_GEOMETRY_REGISTER_BOOST_ARRAY_CS(cs::cartesian) int main() { // Define a polygon storing points in a deque and storing interior rings // in a list (note that std::list is not supported by most algorithms // because not supporting a random access iterator) typedef boost::geometry::model::polygon < boost::array, true, true, std::deque, std::list > polygon; std::cout << typeid(boost::geometry::interior_type::type).name() << std::endl; return 0; } //] //[interior_type_output /*` Output (using MSVC) is a long story (part manually replaced with ellipsis): [pre class std::list,1,1,class std::deque,class std::allocator>,class std::allocator<...> > > ] */ //]