A RetroSearch Logo

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

Search Query:

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

[string.substr]

24 Strings library [strings] 24.3 String classes [string.classes] 24.3.2 Class template basic_­string [basic.string] 24.3.2.7 basic_­string string operations [string.ops] 24.3.2.7.8 basic_­string​::​substr [string.substr]

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

1 #

Throws: out_­of_­range if pos > size().

2 #

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

3 #

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