FastLED 3.10.10
Loading...
Searching...
No Matches

◆ operator=() [1/2]

template<typename T>
deque & fl::deque< T >::operator= ( const deque< T > & other)
inline

Definition at line 431 of file deque.h.

431 {
432 if (this != &other) {
433 clear();
434 for (fl::size i = 0; i < other.size(); ++i) {
435 if (!try_push_back(other[i])) break;
436 }
437 }
438 return *this;
439 }
bool try_push_back(const T &value) FL_NO_EXCEPT
Definition deque.h:177
void clear() FL_NO_EXCEPT
Definition deque.h:601
fl::size size() const FL_NO_EXCEPT
Definition deque.h:529