mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
symbolizer : operator== impl
This commit is contained in:
parent
a5b18964af
commit
3d7cd37760
@ -39,6 +39,7 @@
|
||||
#include <mapnik/raster_colorizer.hpp>
|
||||
// stl
|
||||
#include <type_traits>
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@ -99,6 +100,12 @@ struct MAPNIK_DECL symbolizer_base
|
||||
cont_type properties;
|
||||
};
|
||||
|
||||
inline bool operator==(symbolizer_base const& lhs, symbolizer_base const& rhs)
|
||||
{
|
||||
return lhs.properties.size() == rhs.properties.size() &&
|
||||
std::equal(lhs.properties.begin(), lhs.properties.end(), rhs.properties.begin());
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
struct evaluate_path_wrapper
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user