11 #ifndef ASIO_DETAIL_BASE_FROM_COMPLETION_COND_HPP 12 #define ASIO_DETAIL_BASE_FROM_COMPLETION_COND_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 26 template <
typename CompletionCondition>
31 : completion_condition_(completion_condition)
37 std::size_t total_transferred)
40 completion_condition_(ec, total_transferred));
44 CompletionCondition completion_condition_;
57 std::size_t total_transferred)
68 #endif // ASIO_DETAIL_BASE_FROM_COMPLETION_COND_HPP base_from_completion_cond(transfer_all_t)
std::size_t check_for_completion(const asio::error_code &ec, std::size_t total_transferred)
Class to represent an error code value.
static std::size_t check_for_completion(const asio::error_code &ec, std::size_t total_transferred)
std::size_t adapt_completion_condition_result(bool result)
const MutableBufferSequence CompletionCondition completion_condition
base_from_completion_cond(CompletionCondition completion_condition)