| Home | Libraries | People | FAQ | More

##### covered_by(Geometry const &)

Generate `covered_by()` predicate.

###### Description

Generate a predicate defining Value and Geometry relationship. With this predicate query returns indexed Values that are covered by passed Geometry. Value is returned by the query if ``bg::covered_by(Indexable, Geometry)`` returns ``true``.

###### Synopsis

    template<typename Geometry>
    unspecified covered_by(Geometry const & g)

###### Template parameter(s)

Parameter | Description
--- | ---
`Geometry` | The Geometry type.

###### Parameter(s)

Type | Name | Description
--- | --- | ---
`Geometry const &` | `g` | The Geometry object.

###### Example

    bgi::query(spatial_index, bgi::covered_by(box), std::back_inserter(result));