WPILibC++ 2023.4.3
|
This file defines counterparts of C library allocation functions defined in the namespace 'std'. More...
Go to the source code of this file.
Namespaces | |
namespace | wpi |
/file This file defines the SmallVector class. | |
Functions | |
LLVM_ATTRIBUTE_RETURNS_NONNULL void * | wpi::safe_malloc (size_t Sz) |
LLVM_ATTRIBUTE_RETURNS_NONNULL void * | wpi::safe_calloc (size_t Count, size_t Sz) |
LLVM_ATTRIBUTE_RETURNS_NONNULL void * | wpi::safe_realloc (void *Ptr, size_t Sz) |
LLVM_ATTRIBUTE_RETURNS_NONNULL LLVM_ATTRIBUTE_RETURNS_NOALIAS void * | wpi::allocate_buffer (size_t Size, size_t Alignment) |
Allocate a buffer of memory with the given size and alignment. More... | |
void | wpi::deallocate_buffer (void *Ptr, size_t Size, size_t Alignment) |
Deallocate a buffer of memory with the given size and alignment. More... | |
This file defines counterparts of C library allocation functions defined in the namespace 'std'.
The new allocation functions crash on allocation failure instead of returning null pointer.