[core] Use experimental optional instead of mapbox::util::optional

This commit is contained in:
John Firebaugh
2016-01-19 14:47:58 -08:00
parent 48cced9e31
commit 9b62661b07
30 changed files with 87 additions and 80 deletions

View File

@@ -12,12 +12,12 @@ AnnotationTileFeature::AnnotationTileFeature(FeatureType type_, GeometryCollecti
properties(std::move(properties_)),
geometries(geometries_) {}
mapbox::util::optional<Value> AnnotationTileFeature::getValue(const std::string& key) const {
optional<Value> AnnotationTileFeature::getValue(const std::string& key) const {
auto it = properties.find(key);
if (it != properties.end()) {
return mapbox::util::optional<Value>(it->second);
return optional<Value>(it->second);
}
return mapbox::util::optional<Value>();
return optional<Value>();
}
util::ptr<GeometryTileLayer> AnnotationTile::getLayer(const std::string& name) const {