11 # include <vcl_msvc_warnings.h> 21 auto n = (
unsigned int)(v.size());
23 for (
unsigned int i=0; i<n; ++i)
42 for (
unsigned int i=0; i<n; ++i)
50 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, std::vector<T>&)\n" 51 <<
" Unknown version number "<< ver <<
'\n';
52 is.is().clear(std::ios::badbit);
62 os <<
"Vector length: " << v.size() <<
'\n';
63 for (
unsigned int i=0; i<v.size() && i<5; i++)
65 os <<
' ' << i <<
": ";
A binary output adaptor for any std::ostream.
void vsl_b_write(vsl_b_ostream &s, const std::vector< bool > &v)
Write vector to binary stream.
unsigned short version_no() const
Return the version number of the IO format of the file being read.
std::istream & is() const
A reference to the adaptor's stream.
void vsl_b_read(vsl_b_istream &is, std::vector< bool > &v)
Read vector from binary stream.
void vsl_print_summary(std::ostream &os, const std::vector< bool > &v)
Output a human readable summary to the stream.
An adaptor for any std::istream to make it suitable for binary input.
Set of functions, and objects to perform binary IO.
binary IO functions for std::vector<T>