FastLED 3.9.15
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
basic_string & erase(fl::size pos=0, fl::size count=npos) FL_NOEXCEPT
iterator end() FL_NOEXCEPT
iterator begin() FL_NOEXCEPT
const char * c_str() const FL_NOEXCEPT

References begin(), c_str(), end(), erase(), FL_NOEXCEPT, mLength, and pos.

+ Here is the call graph for this function: