đź“… Friday, August 29, 2025
⏰ 1:00 PM PDT
📍 Virtual Event
➤ Virtual
std::vector& insert_line_before( std::vector& text,
std::size_t line_number,
const std::string& new_line )
{
if( line_number < text.size() )
text.insert( text.begin()+line_number, new_line ) ;
return text ;
}
std::vector& delete_lines( std::vector& text,
std::size_t from_line_number,
std::size_t to_line_number )
{
if( to_line_number < text.size() && from_line_number <= to_line_number )
text.erase( text.begin()+from_line_number, text.begin()+to_line_number+1 ) ;
return text ;
}