HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
lookahead_iterator.hpp File Reference

Functions to create a lookahead_iterator from a forward iterator. More...

#include "../utility/module.hpp"
#include <iterator>
#include <bit>
#include <optional>
#include <string>

Go to the source code of this file.

Data Structures

class  hi::v1::lookahead_iterator< LookaheadCount, It, ItEnd >
 Lookahead iterator. More...

Namespaces

namespace  hi
 geometry/margins.hpp
namespace  hi::v1
 The HikoGUI API version 1.

Functions

template<size_t LookaheadCount, typename It, std::sentinel_for< It > ItEnd = std::default_sentinel_t>
auto hi::v1::make_lookahead_iterator (It first, ItEnd last=std::default_sentinel) noexcept
 Create a lookahead_iterator from a forward iterator.
template<size_t LookaheadCount, std::ranges::range Range>
auto hi::v1::make_lookahead_iterator (Range const &range) noexcept
 Create a lookahead_iterator from a forward iterator.

Detailed Description

Functions to create a lookahead_iterator from a forward iterator.