AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::IteratorPair< iterator > Class Template Reference

Utility class to enable range for loop syntax for multimap.equal_range uses. More...

#include "IteratorPair.h"

Public Member Functions

constexpr IteratorPair ()
 
constexpr IteratorPair (iterator first, iterator second)
 
constexpr IteratorPair (std::pair< iterator, iterator > iterators)
 
constexpr iterator begin () const
 
constexpr iterator end () const
 

Private Attributes

std::pair< iterator, iterator > _iterators
 

Detailed Description

template<class iterator>
class Acore::IteratorPair< iterator >

Utility class to enable range for loop syntax for multimap.equal_range uses.

Constructor & Destructor Documentation

◆ IteratorPair() [1/3]

template<class iterator >
constexpr Acore::IteratorPair< iterator >::IteratorPair ( )
inlineconstexpr
35: _iterators() { }
std::pair< iterator, iterator > _iterators
Definition: IteratorPair.h:43

◆ IteratorPair() [2/3]

template<class iterator >
constexpr Acore::IteratorPair< iterator >::IteratorPair ( iterator  first,
iterator  second 
)
inlineconstexpr
36: _iterators(first, second) { }

◆ IteratorPair() [3/3]

template<class iterator >
constexpr Acore::IteratorPair< iterator >::IteratorPair ( std::pair< iterator, iterator >  iterators)
inlineconstexpr
37: _iterators(iterators) { }

Member Function Documentation

◆ begin()

template<class iterator >
constexpr iterator Acore::IteratorPair< iterator >::begin ( ) const
inlineconstexpr

◆ end()

template<class iterator >
constexpr iterator Acore::IteratorPair< iterator >::end ( ) const
inlineconstexpr
40{ return _iterators.second; }

References Acore::IteratorPair< iterator >::_iterators.

Member Data Documentation

◆ _iterators

template<class iterator >
std::pair<iterator, iterator> Acore::IteratorPair< iterator >::_iterators
private