FastLED 3.10.8
Loading...
Searching...
No Matches

◆ operator=() [1/2]

template<int SIZE>
CPixelView & CPixelView< PIXEL_TYPE >::operator= ( const CPixelView & rhs)
inline

Copy the contents of the passed-in set to our set.

Note
If one set is smaller than the other, only the smallest number of items will be copied over.

Definition at line 183 of file pixelset.h.

183 {
184 for(iterator pixel = begin(), rhspixel = rhs.begin(), _end = end(), rhs_end = rhs.end(); (pixel != _end) && (rhspixel != rhs_end); ++pixel, ++rhspixel) {
185 (*pixel) = (*rhspixel);
186 }
187 return *this;
188 }
iterator end() FL_NO_EXCEPT
Definition pixelset.h:482
iterator begin() FL_NO_EXCEPT
Definition pixelset.h:481
pixelset_iterator_base< CRGB > iterator
Definition pixelset.h:478
A version of CPixelView<CRGB> with an included array of CRGB LEDs.
Definition pixelset.h:502