Thoth
A functional, expressive, asynchronous C++26 webdev library
Loading...
Searching...
No Matches
Thoth::String::UnicodeViewer< CharT >::Iterator Struct Reference

#include <UnicodeViewer.hpp>

Public Types

using iterator_category = std::output_iterator_tag
 
using value_type = Rune
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

constexpr Iterator ()=default
 
constexpr Iterator (StringViewType::const_iterator it, StringViewType::const_iterator end)
 
constexpr value_type operator* () const
 
constexpr bool operator== (std::default_sentinel_t) const
 
constexpr Iteratoroperator++ ()
 
constexpr Iterator operator++ (int)
 

Member Typedef Documentation

◆ difference_type

template<UnicodeCharConcept CharT>
using Thoth::String::UnicodeViewer< CharT >::Iterator::difference_type = std::ptrdiff_t

◆ iterator_category

template<UnicodeCharConcept CharT>
using Thoth::String::UnicodeViewer< CharT >::Iterator::iterator_category = std::output_iterator_tag

◆ value_type

template<UnicodeCharConcept CharT>
using Thoth::String::UnicodeViewer< CharT >::Iterator::value_type = Rune

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<UnicodeCharConcept CharT>
constexpr Thoth::String::UnicodeViewer< CharT >::Iterator::Iterator ( )
constexprdefault

◆ Iterator() [2/2]

template<UnicodeCharConcept CharT>
constexpr Thoth::String::UnicodeViewer< CharT >::Iterator::Iterator ( StringViewType::const_iterator  it,
StringViewType::const_iterator  end 
)
explicitconstexpr

Member Function Documentation

◆ operator*()

template<UnicodeCharConcept CharT>
constexpr value_type Thoth::String::UnicodeViewer< CharT >::Iterator::operator* ( ) const
constexpr

◆ operator++() [1/2]

template<UnicodeCharConcept CharT>
constexpr Iterator & Thoth::String::UnicodeViewer< CharT >::Iterator::operator++ ( )
constexpr

◆ operator++() [2/2]

template<UnicodeCharConcept CharT>
constexpr Iterator Thoth::String::UnicodeViewer< CharT >::Iterator::operator++ ( int  )
constexpr

◆ operator==()

template<UnicodeCharConcept CharT>
constexpr bool Thoth::String::UnicodeViewer< CharT >::Iterator::operator== ( std::default_sentinel_t  ) const
constexpr

The documentation for this struct was generated from the following file: