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:
parent
88ba5a7f22
commit
cfc34dd41d
2 changed files with 75 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue