ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
random_selector_entry.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <nlohmann/json.hpp>
5
7
8typedef struct {
9 std::string path_a;
10 std::string path_b;
11 double similarity;
13
14inline void to_json(json& j, const RandomSelectorEntry& d) {
15 j = {
16 {"path_a", d.path_a},
17 {"path_b", d.path_b},
18 {"similarity", d.similarity},
19 };
20}
nlohmann::json json
void to_json(json &j, const RandomSelectorEntry &d)
nlohmann::json json