A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4140/string::substr below:

[string::substr]

21.4.7.8 basic_string::substr [string::substr]

basic_string substr(size_type pos = 0, size_type n = npos) const;

1

Requires: pos <= size()

2

Throws: out_of_range if pos > size().

3

Effects: Determines the effective length rlen of the string to copy as the smaller of n and size() - pos.

4

Returns: basic_string(data()+pos,rlen).


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4