Thrill  0.1
appendline.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * tlx/string/appendline.hpp
3  *
4  * Part of tlx - http://panthema.net/tlx
5  *
6  * Copyright (C) 2019 Timo Bingmann <[email protected]>
7  *
8  * All rights reserved. Published under the Boost Software License, Version 1.0
9  ******************************************************************************/
10 
11 #ifndef TLX_STRING_APPENDLINE_HEADER
12 #define TLX_STRING_APPENDLINE_HEADER
13 
14 #include <istream>
15 #include <string>
16 
17 namespace tlx {
18 
19 //! \addtogroup tlx_string
20 //! \{
21 
22 /******************************************************************************/
23 // appendline()
24 
25 //! like std::getline(istream, string, delim) except that it appends to the
26 //! string, possibly reusing buffer capacity.
27 std::istream& appendline(std::istream& is, std::string& str, char delim = '\n');
28 
29 //! \}
30 
31 } // namespace tlx
32 
33 #endif // !TLX_STRING_APPENDLINE_HEADER
34 
35 /******************************************************************************/
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
Definition: allocator.hpp:220
std::istream & appendline(std::istream &is, std::string &str, char delim)
Definition: appendline.cpp:17