瀏覽代碼

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;