17 lines
438 B
C++
17 lines
438 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
#include <set>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace stl_containers {
|
|
|
|
[[nodiscard]] auto word_frequencies(const std::vector<std::string>& words)
|
|
-> std::map<std::string, int>;
|
|
[[nodiscard]] auto unique_sorted(const std::vector<int>& data) -> std::set<int>;
|
|
[[nodiscard]] auto invert_map(const std::map<int, std::string>& input)
|
|
-> std::map<std::string, int>;
|
|
|
|
} // namespace stl_containers
|