Skip to main content

template <
    typename ApplyFn,
    typename... FmtParams,
    std::enable_if_t<(sizeof...(FmtParams) > 0),
                     int> = 0>
void apply_string(
    const ApplyFn& apply,
    fmt::format_string<FmtParams...> fmt_string,
    FmtParams&&... fmt_args)

Description

Helper to pass fmt::formatted strings to Tracy's (pointer, size) functions.

Template Parameters

ApplyFn
FmtParams
std::enable_if_t<(sizeof...(FmtParams) > 0), int> = 0

Parameters

const ApplyFn& apply
fmt::format_string<FmtParams...> fmt_string
FmtParams&&... fmt_args

template <typename ApplyFn, typename... FmtParams>
void apply_string(const ApplyFn& apply,
                  const std::string_view& string)

Template Parameters

ApplyFn
FmtParams

Parameters

const ApplyFn& apply
const std::string_view& string