158{
159 std::istringstream i("+1234 +345 -235*a");
162 R.init(a);
163 while (true)
164 {
165 while (isspace(i.peek())) i.get();
166
167 if (!isdigit(i.peek()) && i.peek() != '+' && i.peek() != '-') break;
168
170
172 R.elem_text_out(o, a);
173 std::cout << o.
str() <<
" peek: " << i.peek() << std::endl;
174 }
175 R.clear(a);
176}
std::istream & fromStream(std::istream &i, const T &R, typename T::ElementType &result)
aring-style adapter for Z/p using a discrete-log (Zech) representation: every non-zero residue is its...