Changeset 28e58fd for src/tests/vector/vector_int.h
- Timestamp:
- Aug 25, 2017, 10:38:34 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 800d275
- Parents:
- af08051 (diff), 3eab308c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/vector/vector_int.h
raf08051 r28e58fd 24 24 } vector_int; 25 25 26 void ?{}( vector_int *); // allocate vector with default capacity27 void ?{}( vector_int *, int reserve ); // allocate vector with specified capacity28 void ?{}( vector_int * vec, vector_int other );// copy constructor29 void ^?{}( vector_int * );// deallocate vector's storage26 void ?{}( vector_int & ); // allocate vector with default capacity 27 void ?{}( vector_int &, int reserve ); // allocate vector with specified capacity 28 void ?{}( vector_int & vec, vector_int other ); // copy constructor 29 void ^?{}( vector_int & ); // deallocate vector's storage 30 30 31 31 void reserve( vector_int *vec, int reserve ); // reserve more capacity … … 34 34 // implement bounded_array 35 35 36 lvalue int ?[?]( vector_int * vec, int index );// access to arbitrary element (does not resize)37 int last( vector_int * vec ); 36 int & ?[?]( vector_int * vec, int index ); // access to arbitrary element (does not resize) 37 int last( vector_int * vec ); // return last element 38 38 39 39 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.