libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ front() [1/4]

template<typename _CharT, typename _Traits, typename _Alloc>
reference std::basic_string< _CharT, _Traits, _Alloc >::front ( )
inline

Returns a read/write reference to the data at the first element of the string.

Definition at line 1209 of file cow_string.h.

1210 {
1212 return operator[](0);
1213 }
#define __glibcxx_assert(cond)
constexpr bool empty() const noexcept
constexpr const_reference operator[](size_type __pos) const noexcept
Subscript access to the data contained in the string.