43#ifndef LASS_GUARDIAN_OF_INCLUSION_IO_BINARY_O_STREAM_INL
44#define LASS_GUARDIAN_OF_INCLUSION_IO_BINARY_O_STREAM_INL
60BinaryOStream& BinaryOStream::operator<<(
const std::vector<T>& x)
62 typedef typename std::vector<T>::size_type size_type;
64 const size_type size = x.size();
65 static_assert(
sizeof(size_type) <=
sizeof(num::Tuint64),
"size_type must not be wider than 64-bit");
66 *this << static_cast<num::Tuint64>(size);
68 for (size_type i = 0; i < size; ++i)
70 LASS_ASSERT(i < x.size());
79BinaryOStream& BinaryOStream::operator<<(
const std::complex<T>& x)
81 *
this << x.real() << x.imag();
base class of binary output streams.
streams, binary streams, vrmlstreams, ...
Library for Assembled Shared Sources.