예제 #1
0
    void CEREAL_LOAD_FUNCTION_NAME(Archive &ar, std::forward_list<T, A> &forward_list) {
        size_type size;
        ar(make_size_tag(size));

        forward_list.resize(static_cast<size_t>( size ));

        for (auto &i : forward_list)
            ar(i);
    }
예제 #2
0
  void load( Archive & ar, std::forward_list<T, A> & forward_list )
  {
    size_type size;
    ar( make_size_tag( size ) );

    forward_list.resize( static_cast<size_t>( size ) );

    for( auto & i : forward_list )
      ar( i );
  }