Ada 2.9.2
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
ada::url_search_params_iter< T, Type > Struct Template Reference

#include <url_search_params.h>

Public Member Functions

 url_search_params_iter ()
 
 url_search_params_iter (const url_search_params_iter &u)=default
 
 url_search_params_iter (url_search_params_iter &&u) noexcept=default
 
url_search_params_iteroperator= (url_search_params_iter &&u) noexcept=default
 
url_search_params_iteroperator= (const url_search_params_iter &u)=default
 
 ~url_search_params_iter ()=default
 
std::optional< T > next ()
 
bool has_next () const
 

Friends

struct url_search_params
 

Detailed Description

template<typename T, url_search_params_iter_type Type>
struct ada::url_search_params_iter< T, Type >

Implements a non-conventional iterator pattern that is closer in style to JavaScript's definition of an iterator.

See also
https://webidl.spec.whatwg.org/#idl-iterable

Definition at line 163 of file url_search_params.h.

Constructor & Destructor Documentation

◆ url_search_params_iter() [1/3]

template<typename T , url_search_params_iter_type Type>
ada::url_search_params_iter< T, Type >::url_search_params_iter ( )
inline

Definition at line 164 of file url_search_params.h.

◆ url_search_params_iter() [2/3]

template<typename T , url_search_params_iter_type Type>
ada::url_search_params_iter< T, Type >::url_search_params_iter ( const url_search_params_iter< T, Type > & u)
default

◆ url_search_params_iter() [3/3]

template<typename T , url_search_params_iter_type Type>
ada::url_search_params_iter< T, Type >::url_search_params_iter ( url_search_params_iter< T, Type > && u)
defaultnoexcept

◆ ~url_search_params_iter()

template<typename T , url_search_params_iter_type Type>
ada::url_search_params_iter< T, Type >::~url_search_params_iter ( )
default

Member Function Documentation

◆ has_next()

template<typename T , url_search_params_iter_type Type>
bool ada::url_search_params_iter< T, Type >::has_next ( ) const
inline

◆ next()

std::optional< key_value_view_pair > ada::url_search_params_entries_iter::next ( )
inline

Return the next item in the iterator or std::nullopt if done.

Definition at line 201 of file url_search_params-inl.h.

References ada::url_search_params_iter< T, Type >::has_next().

◆ operator=() [1/2]

template<typename T , url_search_params_iter_type Type>
url_search_params_iter & ada::url_search_params_iter< T, Type >::operator= ( const url_search_params_iter< T, Type > & u)
default

◆ operator=() [2/2]

template<typename T , url_search_params_iter_type Type>
url_search_params_iter & ada::url_search_params_iter< T, Type >::operator= ( url_search_params_iter< T, Type > && u)
defaultnoexcept

Friends And Related Symbol Documentation

◆ url_search_params

template<typename T , url_search_params_iter_type Type>
friend struct url_search_params
friend

Definition at line 186 of file url_search_params.h.


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