Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
string::front (1 of 2 overloads)

Return the first character.

Synopsis
char&
front();
Description

Returns a reference to the first character.

Complexity

Constant.

Precondition
not empty()

PrevUpHomeNext