get_arg_t -> query_arg_t

This commit is contained in:
Denis Blank 2018-12-08 04:50:38 +01:00
parent 24158583b7
commit cb6ce5b43b
2 changed files with 8 additions and 8 deletions

View File

@ -44,20 +44,20 @@ namespace cti {
/// struct continuation {
/// void operator() (callback<Args...>);
/// bool operator() (cti::is_ready_arg_t) const;
/// std::tuple<Args...> operator() (cti::get_arg_t);
/// std::tuple<Args...> operator() (cti::query_arg_t);
/// };
/// template<typename T>
/// struct continuation<T> {
/// template<typename Callback>
/// void operator() (callback<T>);
/// bool operator() (cti::is_ready_arg_t) const;
/// T operator() (cti::get_arg_t);
/// T operator() (cti::query_arg_t);
/// };
/// template<>
/// struct continuation<void> {
/// void operator() (callback<>);
/// bool operator() (cti::is_ready_arg_t) const;
/// void operator() (cti::get_arg_t);
/// void operator() (cti::query_arg_t);
/// };
/// ```
/// ```cpp
@ -82,7 +82,7 @@ struct is_ready_arg_t {};
/// It's required that the query of is_ready_arg_t returns true.
///
/// \since 4.0.0
struct get_arg_t {};
struct query_arg_t {};
/// Represents the tag type that is used to disambiguate the
/// callback operator() in order to take the exception asynchronous chain.

View File

@ -92,7 +92,7 @@ struct ready_continuation {
return true;
}
std::tuple<Args...> operator()(get_arg_t) && {
std::tuple<Args...> operator()(query_arg_t) && {
return std::move(values_);
}
};
@ -114,7 +114,7 @@ struct ready_continuation<> {
return true;
}
std::tuple<> operator()(get_arg_t) && {
std::tuple<> operator()(query_arg_t) && {
return std::make_tuple();
}
};
@ -141,7 +141,7 @@ struct proxy_continuable<traits::identity<Args...>, Continuation>
return false;
}
std::tuple<Args...> operator()(get_arg_t) && {
std::tuple<Args...> operator()(query_arg_t) && {
util::unreachable();
}
};
@ -754,7 +754,7 @@ struct chained_continuation<traits::identity<Args...>, HandleResults,
return false;
}
std::tuple<Args...> operator()(get_arg_t) && {
std::tuple<Args...> operator()(query_arg_t) && {
util::unreachable();
}
};