408  11.     

 gnu C++    attach ().    -
        if stream
 of stream ( 11.21).

//  11.21.    
//                  ofstream

int main (int argc, char *argv[])
{

int Fd[2] ;

ofstream Out;

pipe(Fd) ;

Out.attach(Fd[l]) ;

//. . .

//  .

//. . .

Out.closet ) ;

}

   Out. attach (Fd[l] )   ofstream 
   .   ,   -
   Out,     .  -
        
     f stream-  -
   .     -
       ,  -
      .    -
  ,       , 
   -     -
   ,     .    -
 " "    .
      ,   
  "  ".     
"  "      . , -
      ofstream  if stream,   -
 ,   ios,    -
.   iostreams-    -
   ,     
     .     iostream-
       
      .  . 11.9 -
     ifstream, ofstream, 
        .

            
  f stream  - read ()  write ().

11.5.2.      
 ostream_iterator

      ostream_iterator  istream_
iterator,     -
.  ostream_iterator     