##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::basic_string_view::begin, std::basic_string_view::cbegin

From cppreference.com
< cpp‎ | string‎ | basic string view

constexpr const_iterator begin() const; |  | (since C++17)
constexpr const_iterator cbegin() const; |  | (since C++17)

Returns an iterator to the first character of the view.

### [edit] Parameters

(none)

### [edit] Return value

`const_iterator` to the first character

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] Complexity

Constant

### [edit] See also

end cend | returns an iterator to the end (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/string/basic_string_view/begin&oldid=91682"
Category:

- unconditionally noexcept

Hidden categories:

- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template