HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Data Structures | Namespaces | Functions
lookahead_iterator.hpp File Reference

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

#include "../utility/utility.hpp"
#include "../macros.hpp"
#include <iterator>
#include <bit>
#include <optional>
#include <string>
#include <stdexcept>
#include <array>

Go to the source code of this file.

Data Structures

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

Namespaces

namespace  hi
 The HikoGUI namespace.
 
namespace  hi::v1
 The HikoGUI API version 1.
 

Functions

 hi_export_module (hikogui.parser.lookahead_iterator)
 
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.