diff options
Diffstat (limited to 'app/source/Cplt/Utils/IO/TslRobinIntegration.hpp')
-rw-r--r-- | app/source/Cplt/Utils/IO/TslRobinIntegration.hpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/app/source/Cplt/Utils/IO/TslRobinIntegration.hpp b/app/source/Cplt/Utils/IO/TslRobinIntegration.hpp index bdea505..a19a4f1 100644 --- a/app/source/Cplt/Utils/IO/TslRobinIntegration.hpp +++ b/app/source/Cplt/Utils/IO/TslRobinIntegration.hpp @@ -9,11 +9,9 @@ namespace DataStreamAdapters { template <class TKeyAdapter = void, class TValueAdapter = void> -struct TslRobinMap -{ +struct TslRobinMap { template <class TKey, class TValue> - static void ReadFromDataStream(InputDataStream& stream, tsl::robin_map<TKey, TValue>& map) - { + static void ReadFromDataStream(InputDataStream& stream, tsl::robin_map<TKey, TValue>& map) { static_assert(std::is_default_constructible_v<TValue>); static_assert(std::is_move_constructible_v<TValue>); @@ -33,8 +31,7 @@ struct TslRobinMap } template <class TKey, class TValue> - static void WriteToDataStream(OutputDataStream& stream, const tsl::robin_map<TKey, TValue>& map) - { + static void WriteToDataStream(OutputDataStream& stream, const tsl::robin_map<TKey, TValue>& map) { stream.Write((uint64_t)map.size()); for (auto it = map.begin(); it != map.end(); ++it) { @@ -45,11 +42,9 @@ struct TslRobinMap }; template <class TAdapter = void> -struct TslRobinSet -{ +struct TslRobinSet { template <class TElement> - static void ReadFromDataStream(InputDataStream& stream, tsl::robin_set<TElement>& set) - { + static void ReadFromDataStream(InputDataStream& stream, tsl::robin_set<TElement>& set) { static_assert(std::is_default_constructible_v<TElement>); static_assert(std::is_move_constructible_v<TElement>); @@ -66,8 +61,7 @@ struct TslRobinSet } template <class TElement> - static void WriteToDataStream(OutputDataStream& stream, const tsl::robin_set<TElement>& set) - { + static void WriteToDataStream(OutputDataStream& stream, const tsl::robin_set<TElement>& set) { stream.Write((uint64_t)set.size()); for (auto& element : set) { |