… | |
… | |
27 | #endif |
27 | #endif |
28 | |
28 | |
29 | // original version taken from MICO, but this has been completely rewritten |
29 | // original version taken from MICO, but this has been completely rewritten |
30 | // known limitations w.r.t. std::vector |
30 | // known limitations w.r.t. std::vector |
31 | // - many methods missing |
31 | // - many methods missing |
32 | // - no error checking, no exceptions thrown |
32 | // - no error checking, no exceptions thrown (e.g. at()) |
33 | // - size_type is 32bit even on 64 bit hosts, so limited to 2**31 elements |
33 | // - size_type is 32bit even on 64 bit hosts, so limited to 2**31 elements |
34 | // - no allocator support |
34 | // - no allocator support |
35 | // - we don't really care about const correctness, but we try |
35 | // - we don't really care about const correctness, but we try |
36 | // - we don't care about namespaces and stupid macros the user might define |
36 | // - we don't care about namespaces and stupid macros the user might define |
|
|
37 | // - no bool specialisation |
37 | template<class T> |
38 | template<class T> |
38 | struct simplevec |
39 | struct simplevec |
39 | { |
40 | { |
40 | #if ESTL_BIG_VECTOR |
41 | #if ESTL_BIG_VECTOR |
41 | // shoudl use size_t/ssize_t, but that's not portable enough for us |
42 | // shoudl use size_t/ssize_t, but that's not portable enough for us |