mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
.tutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@11530 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bc892d2bfd
commit
b7e9ea073a
2 changed files with 9 additions and 11 deletions
|
|
@ -36,7 +36,7 @@ void SpecialStream()
|
|||
os << "This is a test " << 12345;
|
||||
os.Close();
|
||||
|
||||
/// `TeeStream` send output data to two separate streams:
|
||||
/// `TeeStream` sends output data to two separate streams:
|
||||
|
||||
StringStream ss1;
|
||||
StringStream ss2;
|
||||
|
|
@ -49,9 +49,9 @@ void SpecialStream()
|
|||
/// `MemReadStream` can be used to convert read-only memory block to stream data:
|
||||
|
||||
static const char s[] = "Some line\nAnother line";
|
||||
MemReadStream ms(s, sizeof(os));
|
||||
MemReadStream ms(s, sizeof(s) - 1);
|
||||
while(!ms.IsEof())
|
||||
DUMP(ms.GetLine());
|
||||
DUMPHEX(ms.GetLine());
|
||||
|
||||
///
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
#if 0
|
||||
SECTION("Basics");
|
||||
DO(Logging);
|
||||
DO(StringTutorial);
|
||||
|
|
@ -13,6 +12,11 @@ GUI_APP_MAIN
|
|||
DO(CombineHashTutorial);
|
||||
DO(ComparableTutorial);
|
||||
|
||||
SECTION("Streams");
|
||||
DO(Stream);
|
||||
DO(SpecialStream);
|
||||
DO(Serialize);
|
||||
|
||||
SECTION("Array containers");
|
||||
DO(Vector1);
|
||||
DO(Vector2);
|
||||
|
|
@ -30,7 +34,7 @@ GUI_APP_MAIN
|
|||
DO(SortedMap);
|
||||
DO(TupleTutorial);
|
||||
|
||||
SECTION("Ranges and algoritims");
|
||||
SECTION("Ranges and algorithms");
|
||||
DO(Range);
|
||||
DO(Algo);
|
||||
DO(Sorting);
|
||||
|
|
@ -53,12 +57,6 @@ GUI_APP_MAIN
|
|||
DO(AsyncTutorial);
|
||||
DO(CoPartitionTutorial);
|
||||
DO(CoAlgoTutorial);
|
||||
#endif
|
||||
|
||||
SECTION("Streams");
|
||||
DO(Stream);
|
||||
DO(SpecialStream);
|
||||
DO(Serialize);
|
||||
|
||||
MakeTutorial();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue