Prechádzať zdrojové kódy

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

Sam Jaffe 2 rokov pred
rodič
commit
fd1f0099ce
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  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;