Use nested namespace

It's a mechanical change to modernize the code base
This commit is contained in:
Dennis Luxen
2022-12-11 10:10:26 +01:00
parent 152a52bc1a
commit a4aa153ba4
456 changed files with 469 additions and 2474 deletions
+1 -7
View File
@@ -15,11 +15,7 @@
#include <string>
#include <vector>
namespace osrm
{
namespace engine
{
namespace trip
namespace osrm::engine::trip
{
// computes the distance of a given permutation
@@ -93,8 +89,6 @@ inline std::vector<NodeID> BruteForceTrip(const std::size_t number_of_locations,
return route;
}
} // namespace trip
} // namespace engine
} // namespace osrm
#endif // TRIP_BRUTE_FORCE_HPP
@@ -13,11 +13,7 @@
#include <string>
#include <vector>
namespace osrm
{
namespace engine
{
namespace trip
namespace osrm::engine::trip
{
// given a route and a new location, find the best place of insertion and
@@ -175,8 +171,6 @@ FarthestInsertionTrip(const std::size_t number_of_locations,
return FindRoute(number_of_locations, dist_table, max_from, max_to);
}
} // namespace trip
} // namespace engine
} // namespace osrm
#endif // TRIP_FARTHEST_INSERTION_HPP
@@ -13,11 +13,7 @@
#include <string>
#include <vector>
namespace osrm
{
namespace engine
{
namespace trip
namespace osrm::engine::trip
{
template <typename NodeIDIterator>
@@ -92,8 +88,6 @@ std::vector<NodeID> NearestNeighbourTrip(const NodeIDIterator &start,
}
return route;
}
} // namespace trip
} // namespace engine
} // namespace osrm
#endif // TRIP_NEAREST_NEIGHBOUR_HPP