Non-modifying operations
In this lesson, we've listed down the non-modifying operations that can be performed on a string view.
To make this chapter concise and not repeat the detailed descriptions from the chapter on strings, I only mention the non-modifying operations of the string view. For further details, please use the link to the associated documentation in the string chapter.
-
Element access:
operator[], at, front, back, data
(see string: element access) -
Capacity:
size, length, max_size, empty
(see string: size versus capacity) -
Find:
find, rfind, find_first_of, find_last_of, find_first_not_of, find_last_not_of
(see string: search) -
Copy:
copy
(see string: conversion between a C++ string and a C-String)
Get hands-on with 1400+ tech skills courses.