![]() Multiple flags may be set by a single operation. When set, the integrity of the stream may have been affected. The construction of sentry failed (such as when the stream state was not good before the call).Įither the internal call to pubsync returned -1, or some other error occurred on the stream (such as when the function catches an exception thrown by an internal operation). Otherwise, it returns zero, indicating success.Įrrors are signaled by modifying the internal state flags: If the function fails, either because no stream buffer object is associated to the stream ( rdbuf is null), or because the call to its pubsync member fails, it returns -1. ![]() Notice that the called function may succeed when no action is performed, if that is the behavior defined for the stream buffer object on synchronization.Ĭalling this function does not alter the value returned by gcount. Otherwise it returns zero, indicating success. If the call to pubsync fails (i.e., it returns -1), the function sets the badbit flag, and returns -1. Finally, it destroys the sentry object before returning. Then (if good), it calls pubsync on its associated stream buffer object (if rdbuf is null, the function returns -1 instead). Internally, the function accesses the input sequence by first constructing a sentry object (with noskipws set to true). ![]() Specifics of the operation depend on the particular implementation of the stream buffer object associated to the stream. Synchronizes the associated stream buffer with its controlled input sequence.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |