diff options
| author | 2026-04-04 11:54:40 +0100 | |
|---|---|---|
| committer | 2026-04-04 11:54:40 +0100 | |
| commit | 4f217001cd68b505b9d4820bf48e72463580c5ad (patch) | |
| tree | 5c40d62487c614523fabe38bc30e49a4535d9c00 /include | |
| parent | Stop using a second extensible for no-tls-cert. (diff) | |
Rename utility/map to container and prefix the difference method.
Diffstat (limited to 'include')
| -rw-r--r-- | include/utility/container.h (renamed from include/utility/map.h) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/utility/map.h b/include/utility/container.h index 87d93a13b..d98eaf2c2 100644 --- a/include/utility/map.h +++ b/include/utility/container.h @@ -20,7 +20,7 @@ #pragma once -namespace insp::map +namespace insp { /** Compares two maps and returns a list of the differences. * @param first The first map to compare. @@ -28,7 +28,7 @@ namespace insp::map * @param out The map to store the differences in. */ template<typename Key, typename Value, typename Compare, template<typename...> typename Map> - void difference(const Map<Key, Value, Compare>& first, const Map<Key, Value, Compare>& second, + void map_difference(const Map<Key, Value, Compare>& first, const Map<Key, Value, Compare>& second, Map<Key, std::pair<std::optional<Value>, std::optional<Value>>, Compare>& out) { auto fiter = first.cbegin(); |
