PcapPlusPlus  Next
pcpp::internal::DeviceListBase< T, Deleter > Class Template Reference

A base class for device lists, providing common functionality for managing a list of devices. More...

#include <DeviceListBase.h>

Public Member Functions

iterator begin ()
 Get an iterator to the beginning of the device list.
 
const_iterator begin () const
 Get an iterator to the beginning of the device list.
 
const_iterator cbegin () const
 Get a const iterator to the beginning of the device list.
 
iterator end ()
 Get an iterator to the end of the device list.
 
const_iterator end () const
 Get an iterator to the end of the device list.
 
const_iterator cend () const
 Get a const iterator to the end of the device list.
 
bool empty () const
 Check if the device list is empty. More...
 
size_type size () const
 Get the number of devices in the list. More...
 

Detailed Description

template<typename T, typename Deleter = std::default_delete<T>>
class pcpp::internal::DeviceListBase< T, Deleter >

A base class for device lists, providing common functionality for managing a list of devices.

Member Function Documentation

◆ empty()

template<typename T , typename Deleter = std::default_delete<T>>
bool pcpp::internal::DeviceListBase< T, Deleter >::empty ( ) const
inline

Check if the device list is empty.

Returns
True if the device list is empty, false otherwise

◆ size()

template<typename T , typename Deleter = std::default_delete<T>>
size_type pcpp::internal::DeviceListBase< T, Deleter >::size ( ) const
inline

Get the number of devices in the list.

Returns
The number of devices in the list