| Home | Libraries | People | FAQ | More

##### boost::geometry::index::indexable

The function object extracting Indexable from Value.

###### Description

It translates Value object to Indexable object. By default, it can handle Values which are Indexables, std::pair<Indexable, T2>, boost::tuple<Indexable, ...> and std::tuple<Indexable, ...> if STD tuples and variadic templates are supported.

###### Header

`#include <boost/geometry/index/indexable.hpp>`

###### Synopsis

    template<typename Value>
    struct indexable
    {
      // ...
    };

###### Template parameter(s)

Parameter | Description
--- | ---
`Value` | The Value type which may be translated directly to the Indexable.

###### Typedef(s)

Type | Description
--- | ---
`result_type` | The type of result returned by function object. It should be const Indexable reference.

###### Member(s)

Modifier | Function | Description
--- | --- | ---
`const` | `operator()(Value const &)` | Return indexable extracted from the value.

###### operator()(Value const &)

Return indexable extracted from the value.

<h7> Synopsis </h7>

    result_type operator()(Value const & v)

<h7> Modifier(s) </h7>

    const

<h7> Parameter(s) </h7>

Type | Name | Description
--- | --- | ---
`Value const &` | `v` | The value.

<h7> Returns </h7>

The indexable.