9 template <
typename T,
typename Deleter = std::default_delete<T>>
class DeviceListBase
26 using size_type = std::size_t;
34 return m_DeviceList.begin();
40 return m_DeviceList.begin();
46 return m_DeviceList.cbegin();
52 return m_DeviceList.end();
56 const_iterator
end()
const
58 return m_DeviceList.end();
62 const_iterator
cend()
const
64 return m_DeviceList.cend();
71 return m_DeviceList.empty();
78 return m_DeviceList.size();
Definition: PointerVector.h:50
typename std::vector< T * >::iterator VectorIterator
Iterator object that is used for iterating all elements in the vector.
Definition: PointerVector.h:53
typename std::vector< T * >::const_iterator ConstVectorIterator
Const iterator object that is used for iterating all elements in a constant vector.
Definition: PointerVector.h:56
A base class for device lists, providing common functionality for managing a list of devices.
Definition: DeviceListBase.h:10
iterator begin()
Get an iterator to the beginning of the device list.
Definition: DeviceListBase.h:32
const_iterator begin() const
Get an iterator to the beginning of the device list.
Definition: DeviceListBase.h:38
iterator end()
Get an iterator to the end of the device list.
Definition: DeviceListBase.h:50
bool empty() const
Check if the device list is empty.
Definition: DeviceListBase.h:69
const_iterator cend() const
Get a const iterator to the end of the device list.
Definition: DeviceListBase.h:62
const_iterator cbegin() const
Get a const iterator to the beginning of the device list.
Definition: DeviceListBase.h:44
size_type size() const
Get the number of devices in the list.
Definition: DeviceListBase.h:76
const_iterator end() const
Get an iterator to the end of the device list.
Definition: DeviceListBase.h:56
The main namespace for the PcapPlusPlus lib.