Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

stxxl support for std::vector insert

Anonymous
2013-01-29
2013-11-27

  • Anonymous
    2013-01-29

    Hi,

    Right now I am using stxxl library in one of my project to support large file. But I am stuck with one requirement that I can't still manage which is std::vector insert like functionality. In my project I need to insert values in between just like std::vector.

    I would appreciate if some one could help me.

    Regards,
    C. Saha   

     
  • dfeist
    dfeist
    2013-11-27

    Hi,

    if I understand you correctly, you try to insert (i.e. push_back()) some std::vector's into a stxxl::vector ?

    Note that the Value_Type (= element type of contained objects) of a stxxl::vector must be a POD (= a struct (or class) without constructors, destructors and virtual members functions) with no references to internal memory.

    Consequently, you can't push_back() a std::vector to a stxxl::vector.

    See http://stxxl.sourceforge.net/tags/master/design_vector.html for further details on stxxl::vector.

     
    Last edit: dfeist 2013-11-27