From Jason Turner

[syncstream.syncbuf.virtuals]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpoa053nsl/{from.md → to.md} +15 -0
tmp/tmpoa053nsl/{from.md → to.md} RENAMED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Overridden virtual functions <a id="syncstream.syncbuf.virtuals">[[syncstream.syncbuf.virtuals]]</a>
2
+
3
+ ``` cpp
4
+ int sync() override;
5
+ ```
6
+
7
+ *Effects:* Records that the wrapped stream buffer is to be flushed.
8
+ Then, if `emit_on_sync` is `true`, calls `emit()`.
9
+
10
+ [*Note 1*: If `emit_on_sync` is `false`, the actual flush is delayed
11
+ until a call to `emit()`. — *end note*]
12
+
13
+ *Returns:* If `emit()` was called and returned `false`, returns `-1`;
14
+ otherwise `0`.
15
+