// // sentinal.h // stream // // Created by Sam Jaffe on 3/30/23. // #pragma once namespace stream::detail { struct sentinal_type { template friend bool operator==(It const & iter, sentinal_type) { return iter.at_end(); } template friend bool operator!=(It const & iter, sentinal_type) { return !iter.at_end(); } }; } namespace stream::ranges { constexpr inline detail::sentinal_type sentinal; }