GCS
0.2.3
|
#include <gu_utils.hpp>
Public Member Functions | |
VLA (size_t n) | |
T * | operator& () |
T & | operator[] (size_t i) |
Substitute for the Variable Length Array on the stack from C99. Provides automatic deallocation when out of scope:
void foo(size_t n) { VLA<int> bar(n); bar[0] = 5; throw; }