Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
sstream.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <sstream>
9
10#include <ext/ostream>
11#include <ext/istream>
12
13namespace ext {
14
15class ostringstream : public ostream {
16public:
17 ostringstream ( );
18
19 ostringstream ( ostringstream && rhs ) noexcept;
20
21 ~ostringstream ( ) noexcept override;
22
24
25 void swap ( ostringstream & other );
26
27 std::string str ( ) const &;
28
29 void str ( const std::string & str );
30
31 std::stringbuf * rdbuf ( );
32
33 const std::stringbuf * rdbuf ( ) const;
34};
35
36class istringstream : public istream {
37public:
38 istringstream ( const std::string & data = "" );
39
40 istringstream ( istringstream && rhs ) noexcept;
41
42 ~istringstream ( ) noexcept override;
43
45
46 void swap ( istringstream & other );
47
48 std::string str ( ) const &;
49
50 void str ( const std::string & str );
51
52 std::stringbuf * rdbuf ( );
53
54 const std::stringbuf * rdbuf ( ) const;
55};
56
57} /* namespace ext */
Definition: istream.h:32
Definition: sstream.h:36
Definition: ostream.h:14
Definition: sstream.h:15
ostringstream & operator=(ostringstream &&) noexcept
ostringstream()
Definition: sstream.cpp:10
std::string str() const &
Definition: sstream.cpp:29
void swap(ostringstream &other)
Definition: sstream.cpp:23
~ostringstream() noexcept override
Definition: sstream.cpp:17
std::stringbuf * rdbuf()
Definition: sstream.cpp:37
Definition: sigHandler.cpp:20
Definition: FordFulkerson.hpp:16