diff options
Diffstat (limited to 'raii/allocate.cpp')
| -rw-r--r-- | raii/allocate.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/raii/allocate.cpp b/raii/allocate.cpp new file mode 100644 index 0000000..519f09f --- /dev/null +++ b/raii/allocate.cpp | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | bool f(int big_number) { | ||
| 2 | int *a = new int[big_number]; | ||
| 3 | return true; | ||
| 4 | } | ||
| 5 | |||
| 6 | int main() { | ||
| 7 | return 0; | ||
| 8 | } | ||
