Return the first character

Synopsis

Declared in header </boost/url/decode_view.hpp#L319[boost/url/decode_view.hpp,window=blank_]>

reference
front() const noexcept;

Description

Example

assert( decode_view( "Program%20Files" ).front() == 'P' );

Preconditions

not this->empty()

Complexity

Constant.

Exception Safety

Throws nothing.

Return Value

  • reference