Share via


streambuf::sgetc Method

Reads a single character from the stream without advancing the read position.

virtual typename details::basic_streambuf<_CharType>::int_type sgetc();

Return Value

The value of the character. EOF if the read fails. ::requires_async method if an asynchronous read is required

Remarks

This is a synchronous operation, but is guaranteed to never block.

Requirements

Header: astreambuf.h

Namespace: concurrency::streams

See Also

Reference

streambuf Class