Changeset 1ad1c99 for src/examples/vector_int.h
- Timestamp:
- Apr 27, 2016, 5:35:59 PM (6 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
- Children:
- 84bb4d9
- Parents:
- 21ae786
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/vector_int.h
r21ae786 r1ad1c99 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Apr 06 17:21:59 201612 // Last Modified On : Wed Apr 27 17:26:59 2016 13 13 // Update Count : 2 14 14 // … … 26 26 27 27 void ?{}( vector_int * ); // allocate vector with default capacity 28 void ?{}( vector_int *, int reserve ); // allocate vector with specified capacity 28 void ?{}( vector_int *, int reserve ); // allocate vector with specified capacity 29 void ?{}( vector_int * vec, vector_int other ); // copy constructor 29 30 void ^?{}( vector_int * ); // deallocate vector's storage 30 31 … … 34 35 // implement bounded_array 35 36 36 lvalue int ?[?]( vector_int vec, int index ); // access to arbitrary element (does not resize)37 int last( vector_int vec ); // return last element37 lvalue int ?[?]( vector_int * vec, int index ); // access to arbitrary element (does not resize) 38 int last( vector_int * vec ); // return last element 38 39 39 40 #endif // VECTOR_INT_H
Note: See TracChangeset
for help on using the changeset viewer.