Invoke a function object with a type derived from Info

Synopses

Declared in <mrdocs/Metadata/Info.hpp>

Invoke a function object with a type derived from Info

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

Return Value

The result of calling the function object with the derived type

Parameters

Name

Description

info

The Info object to visit

fn

The function object to call

args

Additional arguments to pass to the function object

Created with MrDocs