### transfer_all

Return a completion condition function object that indicates that a read or write operation should continue until all of the data has been transferred, or until an error occurs.

    unspecified transfer_all();

This function is used to create an object, of unspecified type, that meets CompletionCondition requirements.

##### Example

Reading until a buffer is full:

    boost::array<char, 128> buf;
    asio::error_code ec;
    std::size_t n = asio::read(
        sock, asio::buffer(buf),
        asio::transfer_all(), ec);
    if (ec)
    {
      // An error occurred.
    }
    else
    {
      // n == 128
    }

##### Requirements

Header: `asio/completion_condition.hpp`

Convenience header: `asio.hpp`