![]() |
Home | Libraries | People | FAQ | More |
boost::interprocess::basic_vectorstream
// In header: <boost/interprocess/streams/vectorstream.hpp> template<typename CharVector, typename CharTraits> class basic_vectorstream : public { public: // types typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; // construct/copy/destruct ( = ); template<typename VectorParameter> (, = ); // public member functions basic_vectorbuf< () ; (); () ; (); (); };
A basic_iostream class that holds a character vector specified by CharVector template parameter as its formatting buffer. The vector must have contiguous storage, like std::vector, boost::interprocess::vector or boost::interprocess::basic_string
basic_vectorstream
public member functionsbasic_vectorbuf< () ;
( vect);
Swaps the underlying vector with the passed vector. This function resets the read/write position in the stream. Does not throw.
() ;
Returns a const reference to the internal vector. Does not throw.
( size);
Calls reserve() method of the internal vector. Resets the stream to the first position. Throws if the internals vector's reserve throws.
();
Calls clear() method of the internal vector. Resets the stream to the first position.