scnlib  0.1.2
FormattedinputformodernC++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
scn::ranges::ranges_result< Iterator, Sentinel > Class Template Reference

#include <ranges.h>

Inheritance diagram for scn::ranges::ranges_result< Iterator, Sentinel >:
scn::result< T, Error >

Public Types

using iterator_type = Iterator
 
using sentinel_type = Sentinel
 
using difference_type = ::ranges::difference_type_t< iterator_type >
 
- Public Types inherited from scn::result< T, Error >
using success_type = T
 
using error_type = Error
 

Public Member Functions

constexpr ranges_result (iterator_type it, sentinel_type end, scan_result &&base)
 
template<typename Range >
constexpr ranges_result (const Range &r, difference_type n, scan_result &&base)
 
constexpr iterator_type iterator () const noexcept
 
constexpr auto view () const noexcept
 
- Public Member Functions inherited from scn::result< T, Error >
SCN_CONSTEXPR result (success_type val)
 
SCN_CONSTEXPR result (success_type val, error_type err)
 
SCN_CONSTEXPR14 success_typevalue ()&noexcept
 
SCN_CONSTEXPR const success_typevalue () const &noexcept
 
SCN_CONSTEXPR14 success_type value ()&&noexcept
 
SCN_CONSTEXPR14 error_typeerror ()&noexcept
 
SCN_CONSTEXPR const error_typeerror () const &noexcept
 
SCN_CONSTEXPR14 error_type error ()&&noexcept
 
SCN_CONSTEXPR operator bool () const noexcept
 
SCN_CONSTEXPR bool has_error () const noexcept
 

Detailed Description

template<typename Iterator, typename Sentinel>
class scn::ranges::ranges_result< Iterator, Sentinel >

Definition at line 29 of file ranges.h.

Member Typedef Documentation

template<typename Iterator , typename Sentinel >
using scn::ranges::ranges_result< Iterator, Sentinel >::difference_type = ::ranges::difference_type_t<iterator_type>

Definition at line 33 of file ranges.h.

template<typename Iterator , typename Sentinel >
using scn::ranges::ranges_result< Iterator, Sentinel >::iterator_type = Iterator

Definition at line 31 of file ranges.h.

template<typename Iterator , typename Sentinel >
using scn::ranges::ranges_result< Iterator, Sentinel >::sentinel_type = Sentinel

Definition at line 32 of file ranges.h.

Constructor & Destructor Documentation

template<typename Iterator , typename Sentinel >
constexpr scn::ranges::ranges_result< Iterator, Sentinel >::ranges_result ( iterator_type  it,
sentinel_type  end,
scan_result &&  base 
)
inline

Definition at line 35 of file ranges.h.

template<typename Iterator , typename Sentinel >
template<typename Range >
constexpr scn::ranges::ranges_result< Iterator, Sentinel >::ranges_result ( const Range &  r,
difference_type  n,
scan_result &&  base 
)
inline

Definition at line 42 of file ranges.h.

Member Function Documentation

template<typename Iterator , typename Sentinel >
constexpr iterator_type scn::ranges::ranges_result< Iterator, Sentinel >::iterator ( ) const
inlinenoexcept

Definition at line 51 of file ranges.h.

template<typename Iterator , typename Sentinel >
constexpr auto scn::ranges::ranges_result< Iterator, Sentinel >::view ( ) const
inlinenoexcept

Definition at line 56 of file ranges.h.


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