tlx
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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 <tb@panthema.net>
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
/******************************************************************************/
tlx::appendline
std::istream & appendline(std::istream &is, std::string &str, char delim)
like std::getline(istream, string, delim) except that it appends to the string, possibly reusing buff...
Definition:
appendline.cpp:17
tlx
Definition:
exclusive_scan.hpp:17
tlx
string
appendline.hpp
Generated on Sat Oct 2 2021 20:29:00 for tlx by
1.8.11