OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
detail::SplitViewIterator Class Reference

#include <Split.h>

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = std::string_view
 

Public Member Functions

 SplitViewIterator ()
 
 SplitViewIterator (const char *begin, const char *end, char sep)
 
SplitViewIteratoroperator++ ()
 
SplitViewIterator operator++ (int)
 
std::string_view operator* () const
 

Private Member Functions

void advance ()
 

Private Attributes

const char * _pos0 = nullptr
 
const char * _pos1 = nullptr
 
const char * _end = nullptr
 
char _sep = '\0'
 

Friends

bool operator== (const SplitViewIterator &l, const SplitViewSentinel &r)
 
bool operator== (const SplitViewIterator &l, const SplitViewIterator &r)=default
 

Member Typedef Documentation

◆ difference_type

◆ value_type

using detail::SplitViewIterator::value_type = std::string_view

Constructor & Destructor Documentation

◆ SplitViewIterator() [1/2]

detail::SplitViewIterator::SplitViewIterator ( )
inline

◆ SplitViewIterator() [2/2]

detail::SplitViewIterator::SplitViewIterator ( const char *  begin,
const char *  end,
char  sep 
)
inline

Member Function Documentation

◆ advance()

void detail::SplitViewIterator::advance ( )
inlineprivate

◆ operator*()

std::string_view detail::SplitViewIterator::operator* ( ) const
inline

◆ operator++() [1/2]

SplitViewIterator & detail::SplitViewIterator::operator++ ( )
inline

◆ operator++() [2/2]

SplitViewIterator detail::SplitViewIterator::operator++ ( int  )
inline

Friends And Related Function Documentation

◆ operator== [1/2]

bool operator== ( const SplitViewIterator l,
const SplitViewIterator r 
)
friend

◆ operator== [2/2]

bool operator== ( const SplitViewIterator l,
const SplitViewSentinel r 
)
friend

Member Data Documentation

◆ _end

const char* detail::SplitViewIterator::_end = nullptr
private

◆ _pos0

const char* detail::SplitViewIterator::_pos0 = nullptr
private

◆ _pos1

const char* detail::SplitViewIterator::_pos1 = nullptr
private

◆ _sep

char detail::SplitViewIterator::_sep = '\0'
private

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