mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Migrate away from deprecated std::iterator
class
This commit is contained in:
parent
e6cf186c23
commit
5bd6ff2285
1 changed files with 7 additions and 1 deletions
|
@ -40,9 +40,15 @@ namespace Utils
|
||||||
{
|
{
|
||||||
// A wrapper class that satisfy LegacyOutputIterator requirement
|
// A wrapper class that satisfy LegacyOutputIterator requirement
|
||||||
class FileDeviceOutputIterator
|
class FileDeviceOutputIterator
|
||||||
: public std::iterator<std::output_iterator_tag, void, void, void, void>
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// std::iterator_traits
|
||||||
|
using iterator_category = std::output_iterator_tag;
|
||||||
|
using difference_type = void;
|
||||||
|
using value_type = void;
|
||||||
|
using pointer = void;
|
||||||
|
using reference = void;
|
||||||
|
|
||||||
explicit FileDeviceOutputIterator(QFileDevice &device, const int bufferSize = (4 * 1024));
|
explicit FileDeviceOutputIterator(QFileDevice &device, const int bufferSize = (4 * 1024));
|
||||||
FileDeviceOutputIterator(const FileDeviceOutputIterator &other) = default;
|
FileDeviceOutputIterator(const FileDeviceOutputIterator &other) = default;
|
||||||
~FileDeviceOutputIterator();
|
~FileDeviceOutputIterator();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue