PRCYCoin  2.0.0.7rc1
P2P Digital Currency
frequency_lists.hpp
Go to the documentation of this file.
1 #ifndef __ZXCVBN__FREQUENCY_LISTS_HPP
2 #define __ZXCVBN__FREQUENCY_LISTS_HPP
3 
6 
7 #include <unordered_map>
8 
9 #include <cstdint>
10 
11 namespace zxcvbn {
12 
14 
15 }
16 
17 namespace std {
18 
19 template<>
20 struct hash<zxcvbn::DictionaryTag> {
21  std::size_t operator()(const zxcvbn::DictionaryTag & v) const {
22  return static_cast<std::size_t>(v);
23  }
24 };
25 
26 }
27 
28 namespace zxcvbn {
29 
30 using RankedDicts = std::unordered_map<DictionaryTag, const RankedDict &>;
31 
32 RankedDicts convert_to_ranked_dicts(std::unordered_map<DictionaryTag, RankedDict> & ranked_dicts);
34 
35 }
36 
37 #endif
std::hash< zxcvbn::DictionaryTag >::operator()
std::size_t operator()(const zxcvbn::DictionaryTag &v) const
Definition: frequency_lists.hpp:21
zxcvbn::RankedDicts
std::unordered_map< DictionaryTag, const RankedDict & > RankedDicts
Definition: frequency_lists.hpp:30
zxcvbn
Definition: _frequency_lists.cpp:7
zxcvbn::DictionaryTag
_frequency_lists::DictionaryTag DictionaryTag
Definition: frequency_lists.hpp:13
_frequency_lists.hpp
zxcvbn::default_ranked_dicts
RankedDicts default_ranked_dicts()
Definition: frequency_lists.cpp:19
frequency_lists_common.hpp
zxcvbn::convert_to_ranked_dicts
RankedDicts convert_to_ranked_dicts(std::unordered_map< DictionaryTag, RankedDict > &ranked_dicts)
Definition: frequency_lists.cpp:9
std
Definition: adjacency_graphs.hpp:25
zxcvbn::_frequency_lists::DictionaryTag
DictionaryTag
Definition: _frequency_lists.hpp:14