@@ -23,22 +23,18 @@ template <typename T>
23
23
class numbering final
24
24
{
25
25
public:
26
- // NOLINTNEXTLINE(readability/identifiers)
27
- typedef std::size_t number_type;
26
+ using number_type = std::size_t ; // NOLINT
28
27
29
28
private:
30
- typedef std::vector<T> data_typet;
29
+ using data_typet = std::vector<T>; // NOLINT
31
30
data_typet data;
32
- typedef std::map<T, number_type> numberst;
31
+ using numberst = std::map<T, number_type>; // NOLINT
33
32
numberst numbers;
34
33
35
34
public:
36
- // NOLINTNEXTLINE(readability/identifiers)
37
- typedef typename data_typet::size_type size_type;
38
- // NOLINTNEXTLINE(readability/identifiers)
39
- typedef typename data_typet::iterator iterator;
40
- // NOLINTNEXTLINE(readability/identifiers)
41
- typedef typename data_typet::const_iterator const_iterator;
35
+ using size_type = typename data_typet::size_type; // NOLINT
36
+ using iterator = typename data_typet::iterator; // NOLINT
37
+ using const_iterator = typename data_typet::const_iterator; // NOLINT
42
38
43
39
number_type number (const T &a)
44
40
{
@@ -96,22 +92,18 @@ template <typename T, class hash_fkt>
96
92
class hash_numbering final
97
93
{
98
94
public:
99
- // NOLINTNEXTLINE(readability/identifiers)
100
- typedef unsigned int number_type;
95
+ using number_type = unsigned int ; // NOLINT
101
96
102
97
private:
103
- typedef std::vector<T> data_typet;
98
+ using data_typet = std::vector<T>; // NOLINT
104
99
data_typet data;
105
- typedef std::unordered_map<T, number_type, hash_fkt> numberst;
100
+ using numberst = std::unordered_map<T, number_type, hash_fkt>; // NOLINT
106
101
numberst numbers;
107
102
108
103
public:
109
- // NOLINTNEXTLINE(readability/identifiers)
110
- typedef typename data_typet::size_type size_type;
111
- // NOLINTNEXTLINE(readability/identifiers)
112
- typedef typename data_typet::iterator iterator;
113
- // NOLINTNEXTLINE(readability/identifiers)
114
- typedef typename data_typet::const_iterator const_iterator;
104
+ using size_type = typename data_typet::size_type; // NOLINT
105
+ using iterator = typename data_typet::iterator; // NOLINT
106
+ using const_iterator = typename data_typet::const_iterator; // NOLINT
115
107
116
108
number_type number (const T &a)
117
109
{
0 commit comments