17 Buffer-oriented streams [buffer.stream]

17.2 Class transfer_all [buffer.stream.transfer.all]

The class transfer_all is a completion condition that is used to specify that a read or write operation should continue until all of the data has been transferred, or until an error occurs.

namespace std {
namespace experimental {
namespace net {
inline namespace v1 {

  class transfer_all
  {
  public:
    size_t operator()(const error_code& ec, size_t) const;
  };

} // inline namespace v1
} // namespace net
} // namespace experimental
} // namespace std

The class transfer_all satisfies the CompletionCondition ([buffer.stream.reqmts.completioncondition]) requirements.

size_t operator()(const error_code& ec, size_t) const;

Returns: If !ec, an unspecified non-zero value. Otherwise 0.