![]() |
![]()
| ![]() |
![]()
NAMEstd::basic_string_view::operator[] - std::basic_string_view::operator[] Synopsisconstexpr const_reference operator[]( size_type pos ) const; (since C++17)
Parameterspos - position of the character to return Return valueConst reference to the requested character ExceptionsDoes not throw ComplexityConstant. Notes Unlike std::basic_string::operator[],
std::basic_string_view::operator[](size()) has
Example// Run this code
Output: e
See also at accesses the specified character with bounds checking
|