aboutsummaryrefslogtreecommitdiff
path: root/include/ostream
diff options
context:
space:
mode:
Diffstat (limited to 'include/ostream')
-rw-r--r--include/ostream20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/ostream b/include/ostream
index ec2817e..35ff8dc 100644
--- a/include/ostream
+++ b/include/ostream
@@ -73,8 +73,28 @@ class ostream: public basic_ios
}
ostream& operator<<(const char_type *str);
+
+ /**
+ * Tries to insert a char.
+ */
+ ostream& put(char_type c);
};
+/**
+ * Flushes the output stream.
+ */
+inline ostream& flush(ostream& os) { return os.flush(); }
+
+/**
+ * Write a newline and flush the stream.
+ */
+inline ostream& endl(ostream& os) { return flush(os.put('\n')); }
+
+/**
+ * Write a null character into the output sequence.
+ */
+inline ostream& ends(ostream& os) { return os.put(char()); }
+
} // namespace std
#endif