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

◆ erase() [1/2]

template<typename T, typename LessThan = fl::less<T>>
bool fl::SortedHeapVector< T, LessThan >::erase ( const T & value)
inline

Definition at line 1084 of file vector.h.

1084 {
1085 iterator it = find(value);
1086 if (it != end()) {
1087 mArray.erase(it);
1088 return true;
1089 }
1090 return false;
1091 }
vector< T >::iterator iterator
Definition vector.h:987
vector< T > mArray
Definition vector.h:979
iterator end() FL_NO_EXCEPT
Definition vector.h:1116
iterator find(const T &value) FL_NO_EXCEPT
Definition vector.h:1068

References end(), find(), fl::FL_NO_EXCEPT, mArray, and fl::type_rank< T >::value.

+ Here is the call graph for this function: