char* p; // set p to point to a character buffer containing newlines char* nl = find(p, unreachable_sentinel, '\n');
namespace std { struct unreachable_sentinel_t { template<WeaklyIncrementable I> friend constexpr bool operator==(unreachable_sentinel_t, const I&) noexcept; template<WeaklyIncrementable I> friend constexpr bool operator==(const I&, unreachable_sentinel_t) noexcept; template<WeaklyIncrementable I> friend constexpr bool operator!=(unreachable_sentinel_t, const I&) noexcept; template<WeaklyIncrementable I> friend constexpr bool operator!=(const I&, unreachable_sentinel_t) noexcept; }; }
template<WeaklyIncrementable I>
friend constexpr bool operator==(unreachable_sentinel_t, const I&) noexcept;
template<WeaklyIncrementable I>
friend constexpr bool operator==(const I&, unreachable_sentinel_t) noexcept;
template<WeaklyIncrementable I>
friend constexpr bool operator!=(unreachable_sentinel_t, const I&) noexcept;
template<WeaklyIncrementable I>
friend constexpr bool operator!=(const I&, unreachable_sentinel_t) noexcept;