Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext
boost::geometry::index::indexable
operator()(Value const &)

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
      : public boost::geometry::index::detail::indexable< Value >
{
  // ...
};
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.

Return indexable extracted from the value.

Synopsis
result_type operator()(Value const & v)
Modifier(s)

const

Parameter(s)

Type

Name

Description

Value const &

v

The value.

Returns

The indexable.


PrevUpHomeNext