25namespace juce::universal_midi_packets
41 Iterator() noexcept = default;
44 explicit Iterator (const uint32_t* ptr,
size_t bytes) noexcept;
46 using difference_type =
std::iterator_traits<const uint32_t*>::difference_type;
47 using value_type = View;
48 using reference = const View&;
49 using pointer = const View*;
50 using iterator_category =
std::forward_iterator_tag;
53 Iterator& operator++() noexcept
55 const auto increment = view.size();
61 jassert (increment <= bytesRemaining);
62 bytesRemaining -= increment;
65 view = View (view.data() + increment);
73 Iterator operator++ (
int)
noexcept
83 bool operator== (
const Iterator& other)
const noexcept
85 return view == other.view;
91 bool operator!= (
const Iterator& other)
const noexcept
93 return ! operator== (other);
101 reference
operator*() noexcept {
return view; }
108 pointer operator->() noexcept {
return &view; }
114 size_t bytesRemaining = 0;
@ copy
The command ID that should be used to send a "Copy to clipboard" command.
const DirectoryEntry & operator*(const DirectoryEntry &e) noexcept
A convenience operator so that the expression *it++ works correctly when it is an instance of RangedD...