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 2022. The current version is 1.90.0.
Contents
Other ResourcesPolygon Sponsor |
Polygon 45 With Holes Concept
The polygon_45_with_holes concept tag is polygon_45_with_holes_concept To register a user defined type as a model of polygon_45_with_holes concept, specialize the geometry concept meta-function for that type. In the example below CPolygon45WithHoles is registered as a model of polygon_45_with_holes concept. template <> The semantic of a polygon_45_with_holes is a polygon_45 that it can provide iterators over holes that are also polygon_45. A mutable polygon_45_with_holes must also be able to set its geometry based on an interator range over polygon_45 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. template <typename T, typename
enable = void> template <typename T, typename
enable = void> An object that is a model of polygon_45_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_45_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 45 With Holes Data
The library provides a model of polygon 45 with holes concept declared template<typename T> polygon_45_with_holes_data where T is the coordinate type. This data type is used internally when a 45 degree 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
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|