MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / operator()

Method operator()

Source/Utils/json.hpp:4350–4354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4348 {
4349 template<typename BasicJsonType, typename T>
4350 auto operator()(BasicJsonType& j, T&& val) const noexcept(noexcept(to_json(j, std::forward<T>(val))))
4351 -> decltype(to_json(j, std::forward<T>(val)), void())
4352 {
4353 return to_json(j, std::forward<T>(val));
4354 }
4355 };
4356 } // namespace detail
4357

Callers

nothing calls this directly

Calls 1

to_jsonFunction · 0.85

Tested by

no test coverage detected