Menu

stxxl::vector of userdefined datatypes

pavan842
2011-09-08
2013-04-25
  • pavan842

    pavan842 - 2011-09-08

    Can we create stxxl::vector of userdefined datatypes???
    if so can anyone give an example of how to do it, when i tried to create i am getting the error

    terminate called after throwing an instance of 'std::bad_alloc'
      what():  std::bad_alloc

     
  • Andreas Beckmann

    Of course you can - just have a look at the example programs, e.g. containers/test_vector.cpp

    Andreas

     
  • Andreas Beckmann

    Concerning the bad_alloc - without some compilable example program that exhibits this behaviour it's impossible to debug this.

     

Log in to post a comment.