Opened 13 years ago

Last modified 12 years ago

#515 closed discussion

Why isn't theplu::yat::utility::Index a derived class of std::vector<size_t>? — at Version 1

Reported by: Jari Häkkinen Owned by: Jari Häkkinen
Priority: major Milestone:
Component: utility Version: 0.5.2
Keywords: Cc:

Description (last modified by Jari Häkkinen)

I need push_back and reserve functionality ... but the Index class does not support that.

I'd like to create a Index for use with MatrixLookup but I do not know the length of the Index. Now I have to create a std::vector<size_t> first and then initialize the Index.

Is there any good reason to not derive Index from std::vector?

Change History (1)

comment:1 Changed 13 years ago by Jari Häkkinen

Description: modified (diff)
Note: See TracTickets for help on using tickets.