common: Add ScratchBuffer class

This class creates a default initialized heap allocated buffer for cases where value initializing members during allocation or resize
is redundant.
This commit is contained in:
ameerj 2022-12-18 18:08:20 -05:00
parent 88ba5a7f22
commit cfc34dd41d
2 changed files with 75 additions and 0 deletions

View file

@ -102,6 +102,7 @@ add_library(common STATIC
${CMAKE_CURRENT_BINARY_DIR}/scm_rev.cpp
scm_rev.h
scope_exit.h
scratch_buffer.h
settings.cpp
settings.h
settings_input.cpp