VCCC  2024.05
VisualCamp Common C++ library
unreachable_sentinel.hpp
Go to the documentation of this file.
1 //
2 // Created by yonggyulee on 2023/12/24.
3 //
4 
5 #ifndef VCCC_ITERATOR_UNREACHABLE_SENTINEL_HPP_
6 #define VCCC_ITERATOR_UNREACHABLE_SENTINEL_HPP_
7 
10 
11 namespace vccc {
12 
15 
18  template<typename I>
20  operator==(unreachable_sentinel_t, const I&) noexcept {
21  return false;
22  }
23 };
24 
26 
28 
29 } // namespace vccc
30 
31 #endif // VCCC_ITERATOR_UNREACHABLE_SENTINEL_HPP_
constexpr VCCC_INLINE_OR_STATIC unreachable_sentinel_t unreachable_sentinel
Definition: unreachable_sentinel.hpp:25
#define VCCC_INLINE_OR_STATIC
Definition: inline_or_static.hpp:9
Definition: directory.h:12
constexpr VCCC_INLINE_OR_STATIC detail::element_niebloid< 1 > value
Definition: key_value.hpp:35
sentinel that always compares unequal to any weakly_incrementable type
Definition: unreachable_sentinel.hpp:17
constexpr friend std::enable_if_t< weakly_incrementable< I >::value, bool > operator==(unreachable_sentinel_t, const I &) noexcept
Definition: unreachable_sentinel.hpp:20