A RetroSearch Logo

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

Search Query:

Showing content from https://en.cppreference.com/w/cpp/string/basic_string/../../io/ios_base/../basic_ostream/tellp.html below:

std::basic_ostream<CharT,Traits>::tellp - cppreference.com

Returns the output position indicator of the current associated streambuf object.

Behaves as UnformattedOutputFunction (except without actually performing output). After constructing and checking the sentry object,

(since C++11)

If fail()==true, returns pos_type(-1). Otherwise, returns rdbuf()->pubseekoff(0, std::ios_base::cur, std::ios_base::out).

[edit] Parameters

(none)

[edit] Return value

current output position indicator on success, pos_type(-1) if a failure occurs.

[edit] Example

Output:

0
1
13
18
hello, world 3.14
[edit] See also sets the output position indicator
(public member function) [edit] returns the input position indicator
(public member function of std::basic_istream<CharT,Traits>) [edit] sets the input position indicator
(public member function of std::basic_istream<CharT,Traits>) [edit]

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