39 template <
typename T1,
typename T2>
40 void CoherentBindInternal(Binder* binder, std::pair<T1, T2>& value)
44 CoherentBindInternal(binder,
"first");
45 CoherentBindInternal(binder, value.first);
46 CoherentBindInternal(binder,
"second");
47 CoherentBindInternal(binder, value.second);
52 template <
typename T1,
typename T2>
53 void CoherentBindInternal(Binder* binder,
const std::pair<T1, T2>& value)
57 CoherentBindInternal(binder,
"first");
58 CoherentBindInternal(binder, value.first);
59 CoherentBindInternal(binder,
"second");
60 CoherentBindInternal(binder, value.second);
65 template <
typename T1,
typename T2>
66 void CoherentReadInternal(Binder* binder, std::pair<T1, T2>& value)
68 size_t size = binder->ReadMapBegin();
71 if (binder->ReadProperty(
"first"))
73 CoherentReadInternal(binder, value.first);
76 if (binder->ReadProperty(
"second"))
78 CoherentReadInternal(binder, value.second);
Contains almost all Coherent namespaces, classes and functions.
Definition: DataStorage.h:38