소스 검색

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;