Browse Source

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

Sam Jaffe 2 năm trước cách đây
mục cha
commit
fd1f0099ce
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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;