Beispiel #1
0
 //print one character to the output
 bool print( char ch)
 {
    if (pos() == size()) return false;
    charptr()[ pos()] = ch;
    setPos( pos() + 1);
    return true;
 }
Beispiel #2
0
 char& operator[]( size_type idx)              {if (idx>=m_pos) throw ArrayBoundReadError(); return charptr()[idx];}
Beispiel #3
0
 char* rest()                                        {return charptr() + pos();}
Beispiel #4
0
 //pointer to the rest of the output buffer block
 const char* rest() const                            {return charptr() + pos();}
Beispiel #5
0
int main()
{
 charptr(*pp)++;	// { dg-warning "" } 
 return 0;
}
Beispiel #6
0
int main()
{
    charptr(*pp)++;	// WARNING -
    return 0;
}
 const_iterator begin() const
 {
     return const_iterator( this, charptr());
 }