JSON Voorhees
Killer JSON for C++
|
An implementation of merge_rules
that allows you to bind whatever functions you want to resolve conflicts.
More...
#include <jsonv/algorithm.hpp>
Public Types | |
using | same_key_function = std::function< value(path &&, value &&, value &&)> |
using | type_conflict_function = std::function< value(path &&, value &&, value &&)> |
Public Member Functions | |
dynamic_merge_rules (same_key_function same_key, type_conflict_function type_conflict) | |
virtual value | resolve_same_key (path &¤t_path, value &&a, value &&b) const override |
virtual value | resolve_type_conflict (path &¤t_path, value &&a, value &&b) const override |
Public Attributes | |
same_key_function | same_key |
type_conflict_function | type_conflict |
An implementation of merge_rules
that allows you to bind whatever functions you want to resolve conflicts.
Definition at line 302 of file algorithm.hpp.
|
overridevirtual |
Implements jsonv::merge_rules.
|
overridevirtual |
Implements jsonv::merge_rules.