mrdocs::visit

visit overloads

Synopses

Declared in <mrdocs/Metadata/TParam.hpp>

Visit a template parameter, dispatching to its concrete type.

template<
    typename TParamTy,
    typename F,
    typename... Args>
requires std::derived_from<TParamTy, TParam>
constexpr
decltype(auto)
visit(
    TParamTy& P,
    F&& f,
    Args...&&... args);

Visit a Type with the provided callable.

template<
    std::derived_from<Symbol> TypeTy,
    class F,
    class... Args>
constexpr
decltype(auto)
visit(
    TypeTy& info,
    F&& fn,
    Args...&&... args);

Return Value

  • Whatever the callable returns.

  • The result of calling the function object with the derived type

Parameters

Name Description

P

Parameter to visit.

f

Callable to receive the concrete parameter.

args

Additional arguments forwarded to the callable.

info

The type instance to visit.

fn

The callable to dispatch to the concrete type.

Created with MrDocs