cpp/io/basic ostream/write

Behaves as an. After constructing and checking the sentry object, outputs the characters from successive locations in the character array whose first element is pointed to by. Characters are inserted into the output sequence until one of the following occurs:
 * exactly characters are inserted
 * inserting into the output sequence fails (in which case is called)