FastLED 3.10.6
Loading...
Searching...
No Matches

◆ erase() [3/3]

template<typename T>
fl::enable_if< fl::is_pointer< T >::value &&fl::is_same< typenamefl::remove_cv< typenamefl::remove_pointer< T >::type >::type, char >::value, char * >::type fl::basic_string::erase ( T it_pos)
inline

Definition at line 383 of file basic_string.h.

383 {
384 if (!it_pos) return end();
385 const char* str_begin = c_str();
386 const char* str_end = str_begin + mLength;
387 if (it_pos < str_begin || it_pos >= str_end) return end();
388 fl::size pos = it_pos - str_begin;
389 erase(pos, 1);
390 return begin() + pos;
391 }
uint8_t pos
Definition Blur.ino:11
iterator begin() FL_NO_EXCEPT
iterator end() FL_NO_EXCEPT
const char * c_str() const FL_NO_EXCEPT
basic_string & erase(fl::size pos=0, fl::size count=npos) FL_NO_EXCEPT

References begin(), c_str(), end(), erase(), fl::FL_NO_EXCEPT, mLength, and pos.

+ Here is the call graph for this function: