A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::Queue< Item, Container >::MakeGetItem< T, std::void_t< decltype(std::declval< T >().GetItem(std::declval< ConstIterator >()))> > Struct Template Reference

Struct providing a static method returning the object stored within the queue that is included in the container element pointed to by the given const iterator. More...

Static Public Member Functions

static Ptr< Item > GetItem (const Container &container, const ConstIterator it)
 

Detailed Description

template<typename Item, typename Container>
template<class T>
struct ns3::Queue< Item, Container >::MakeGetItem< T, std::void_t< decltype(std::declval< T >().GetItem(std::declval< ConstIterator >()))> >

Struct providing a static method returning the object stored within the queue that is included in the container element pointed to by the given const iterator.

This method is used when the container defines a GetItem method and is simply a wrapper to invoke such a method.

Definition at line 419 of file queue.h.

Member Function Documentation

◆ GetItem()

template<typename Item , typename Container >
template<class T >
static Ptr< Item > ns3::Queue< Item, Container >::MakeGetItem< T, std::void_t< decltype(std::declval< T >().GetItem(std::declval< ConstIterator >()))> >::GetItem ( const Container container,
const ConstIterator  it 
)
inlinestatic
Parameters
containerthe container
itthe given const iterator
Returns
the item included in the element pointed to by the given iterator

Definition at line 428 of file queue.h.


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