20 #ifndef jsonserial_list_hpp
21 #define jsonserial_list_hpp
23 namespace jsonserial {
25 template <
class T,
class Alloc>
26 struct is_std_list<std::list<T,Alloc>> : std::true_type {};
29 struct JSonArrayImpl<T, typename std::enable_if<is_std_list<T>::value>::type>
32 JSonArrayImpl(T& cont) : cont_(cont) {cont_.clear();}
34 void add(JSonSerial& js, JSonClass::Creator* cr, JKString& s)
override {
35 cont_.resize(cont_.size()+1);
37 readArrayValue(js, cont_.back(), objptr, cr, s);