16 #ifndef PAAL_EUCLIDEAN_METRIC_HPP
17 #define PAAL_EUCLIDEAN_METRIC_HPP
25 namespace data_structures {
31 auto operator()(
const std::pair<T, T> &p1,
const std::pair<T, T> &p2)
const
32 -> decltype(std::hypot(p1.first - p2.first, p1.second - p2.second)) {
33 return std::hypot(p1.first - p2.first, p1.second - p2.second);
44 #endif // PAAL_EUCLIDEAN_METRIC_HPP
auto operator()(const std::pair< T, T > &p1, const std::pair< T, T > &p2) const -> decltype(std::hypot(p1.first-p2.first, p1.second-p2.second))
operator()
metric with euclidean distance