Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2020. The current version is 1.90.0.
Contents
Other ResourcesPolygon Sponsor |
Polygon With Holes Concept
The polygon_with_holes concept tag is polygon_with_holes_concept To register a user defined type as a model of polygon_with_holes concept, specialize the geometry concept meta-function for that type. In the example below CPolygonWithHoles is registered as a model of polygon_with_holes concept. template <> The semantic of a polygon_with_holes is a polygon that it can provide iterators over holes that are also polygon. A mutable polygon_with_holes must also be able to set its geometry based on an interator range over polygon holes. There is no convention of winding of holes enforced within the library. Below is shown the default polygon with holes traits. Specialization of these traits is required for types that don't conform to the default behavior. Note, these traits are used by all polygon with holes concepts. template <typename T, typename
enable = void> template <typename T, typename
enable = void> An object that is a model of polygon_with_holes_concept can be viewed as a model of any of its refinements if it is determined at runtime to conform to the restriction of those concepts. This concept casting is accomplished through the view_as<>() function. view_as<rectangle_concept>(polygon_with_holes_object) The return value of view_as<>() can be passed into any interface that expects an object of the conceptual type specified in its template parameter. Functions
Polygon With Holes Data
The library provides a model of polygon with holes concept declared template<typename T> polygon_with_holes_data where T is the coordinate type. This data type is used internally when a polygon with holes is needed and is available to the library user who finds it convenient to use a library polygon data type instead of providing their own. The data type is implemented to be convenient to use with the library traits. Members
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|