std::vector<Real> location; };intmain(){ ... std::vector<Restaurant> restaurants =generateRestaurants();autogetPayload = [](constRestaurant& r) {returnr;};autogetPosition = [](constRestaurant& r) {returnr.location;};NearestNeighbors::Structure<Restaurant>restaurantLookup(restaurants.begin()...