From 3113b7808b2219dae39c3917608f920d3ed1531e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 28 Jul 2024 03:03:34 +0200 Subject: [PATCH] Update cpp.md Signed-off-by: Dennis Eichhorn --- standards/cpp.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/standards/cpp.md b/standards/cpp.md index 7271320..2548ea6 100755 --- a/standards/cpp.md +++ b/standards/cpp.md @@ -33,13 +33,15 @@ Don't use C++ templates. ## Allocation -Use C allocation methods for heap allocation. +Use memory arenas instead of over and over manually allocating memory. + +However, if neccessary use C allocation methods for heap allocation. ## Functions ### C++ function -Don't use C++ standard functions or C++ functions provided by other C++ header files unless you have to work with C++ types which is often required when working with third party libraries. +Don't use C++ standard library functions or C++ functions provided by other C++ header files unless you have to work with C++ types which is often required when working with third party libraries. ### Parameters @@ -50,4 +52,4 @@ We believe this approach provides a framework for better memory management and b Examples for this can be: * Matrix multiplication with a scalar -* Sorting data (depends on sorting algorithm) \ No newline at end of file +* Sorting data (depends on sorting algorithm)