Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
string::front (2 of 2 overloads)

Return the first character.

Synopsis
char const&
front() const;
Description

Returns a reference to the first character.

Complexity

Constant.

Precondition
not [link json.ref.boost__json__string.empty `empty`]()

PrevUpHomeNext