File: ostringstream.cc

package info (click to toggle)
starplot 0.95.5-8.2%2Bdeb9u1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,476 kB
  • sloc: ansic: 11,296; cpp: 6,418; sh: 5,092; makefile: 613; yacc: 289; sed: 16
file content (8 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
#include "compat.h"

#if (! HAVE_STD__OSTRINGSTREAM) && HAVE_STD__OSTRSTREAM
std::ostringstream::ostringstream() : ostrstream(buffer, 1000) {buffer[0] = 0;}

std::string
std::ostringstream::str() const { return std::string(buffer); }
#endif