mirror of
https://github.com/boostorg/hana.git
synced 2026-02-19 14:32:11 +00:00
Remove Doxygen warnings.
This commit is contained in:
@@ -177,16 +177,20 @@ namespace boost { namespace hana {
|
||||
|
||||
### Example
|
||||
@snippet example/functional/fix.cpp main
|
||||
|
||||
@todo
|
||||
Find a simpler way to make `f` dependent in `operator()(...)`.
|
||||
*/
|
||||
constexpr struct {
|
||||
//! @cond
|
||||
template <typename F>
|
||||
constexpr auto operator()(F f) const {
|
||||
auto fst = [](auto a, ...) { return a; };
|
||||
//! @todo Find a simpler way to make `f` dependent.
|
||||
return [=](auto ...xs) {
|
||||
return f((*this)(fst(f, xs...)), xs...);
|
||||
};
|
||||
}
|
||||
//! @endcond
|
||||
} fix{};
|
||||
|
||||
//! Returns a function invoking `f` with its two first arguments reversed.
|
||||
|
||||
@@ -66,6 +66,7 @@ namespace boost { namespace hana {
|
||||
using hana_datatype = List;
|
||||
|
||||
struct {
|
||||
//! @cond
|
||||
template <typename F, typename ...Xs>
|
||||
static constexpr auto call(F f, list_detail::type_container<Xs...>)
|
||||
{ return f(type<Xs>...); }
|
||||
@@ -73,6 +74,7 @@ namespace boost { namespace hana {
|
||||
template <typename F>
|
||||
constexpr auto operator()(F f) const
|
||||
{ return call(f, typename HiddenTypeContainer::contents{}); }
|
||||
//! @endcond
|
||||
} into;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user