Преглед на файлове

refactor: make sentinal_iterator::sentinal itself instead of a sentinal_type

Sam Jaffe преди 2 години
родител
ревизия
fd1f0099ce
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      include/iterator/sentinal_iterator.h

+ 1 - 2
include/iterator/sentinal_iterator.h

@@ -16,8 +16,7 @@ namespace iterator {
 template <typename It>
 class sentinal_iterator : public facade<sentinal_iterator<It>> {
 public:
-  using sentinal_type = typename It::sentinal_type;
-  static constexpr sentinal_type sentinal{};
+  static inline const sentinal_iterator<It> sentinal{};
 
 public:
   sentinal_iterator() = default;