We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5380a commit 5bfa640Copy full SHA for 5bfa640
libs/libvtrutil/src/vtr_ragged_matrix.h
@@ -1,5 +1,6 @@
1
#ifndef VTR_RAGGED_MATRIX_H
2
#define VTR_RAGGED_MATRIX_H
3
+#include <cstddef>
4
#include <vector>
5
#include <iterator>
6
@@ -212,8 +213,14 @@ class FlatRaggedMatrix {
212
213
* uses a callback to determine row lengths.
214
*/
215
template<class Callback>
- class RowLengthIterator : public std::iterator<std::random_access_iterator_tag, size_t> {
216
+ class RowLengthIterator {
217
public:
218
+ using iterator_category = std::random_access_iterator_tag;
219
+ using difference_type = std::ptrdiff_t;
220
+ using value_type = size_t;
221
+ using pointer = size_t*;
222
+ using reference = size_t&;
223
+
224
RowLengthIterator(size_t irow, Callback& callback)
225
: irow_(irow)
226
, callback_(callback) {}
0 commit comments