Пример #1
0
bool getdata(InStream& in, Type& dest) {
	typedef typename InStream::char_type char_type;
	in.read(reinterpret_cast<char_type*>(&dest), sizeof(Type));
	if (in.gcount() <= 0) return false;
	return true;
}