contains(Geometry const &)

| Home | Libraries | People | FAQ | More

##### contains(Geometry const &)

Generate `contains()` predicate.

###### Description

Generate a predicate defining Value and Geometry relationship. Value will be returned by the query if ``bg::within(Geometry, Indexable)`` returns true.

###### Synopsis

    template<typename Geometry>
    unspecified contains(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::contains(box), std::back_inserter(result));