20 #ifndef jsonserial_set_hpp
21 #define jsonserial_set_hpp
23 namespace jsonserial {
25 template <
class T,
class Comp,
class Alloc>
26 struct is_std_set<std::set<T,Comp,Alloc>> : std::true_type {};
28 template <
class T,
class Comp,
class Alloc>
29 struct is_std_set<std::multiset<T,Comp,Alloc>> : std::true_type {};
32 struct JSonArrayImpl<T, typename std::enable_if<is_std_set<T>::value>::type>
35 JSonArrayImpl(T& set) : set_(set) {set_.clear();}
37 void add(JSonSerial& js, JSonClass::Creator* cr, JKString& s)
override {
38 typename T::value_type val;
40 readArrayValue(js, val, objptr, cr, s);