mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-02 21:02:13 +00:00
[geometry] added traits::clear, resize, push_back to multi concepts
[SVN r85565]
This commit is contained in:
@@ -53,6 +53,11 @@ public :
|
||||
|
||||
BOOST_CONCEPT_USAGE(MultiLinestring)
|
||||
{
|
||||
Geometry* mls = 0;
|
||||
traits::clear<Geometry>::apply(*mls);
|
||||
traits::resize<Geometry>::apply(*mls, 0);
|
||||
linestring_type* ls = 0;
|
||||
traits::push_back<Geometry>::apply(*mls, *ls);
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -52,6 +52,11 @@ public :
|
||||
|
||||
BOOST_CONCEPT_USAGE(MultiPoint)
|
||||
{
|
||||
Geometry* mp = 0;
|
||||
traits::clear<Geometry>::apply(*mp);
|
||||
traits::resize<Geometry>::apply(*mp, 0);
|
||||
point_type* point = 0;
|
||||
traits::push_back<Geometry>::apply(*mp, *point);
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -52,6 +52,11 @@ public :
|
||||
|
||||
BOOST_CONCEPT_USAGE(MultiPolygon)
|
||||
{
|
||||
Geometry* mp = 0;
|
||||
traits::clear<Geometry>::apply(*mp);
|
||||
traits::resize<Geometry>::apply(*mp, 0);
|
||||
polygon_type* poly = 0;
|
||||
traits::push_back<Geometry>::apply(*mp, *poly);
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user