8 #ifndef WPIUTIL_WPI_MEMORY_H_
9 #define WPIUTIL_WPI_MEMORY_H_
40 #endif // WPIUTIL_WPI_MEMORY_H_
void * CheckedRealloc(void *ptr, size_t size)
Wrapper around std::realloc that calls std::terminate on out of memory.
void * CheckedCalloc(size_t num, size_t size)
Wrapper around std::calloc that calls std::terminate on out of memory.
WPILib C++ utilities (wpiutil) namespace.
Definition: SmallString.h:21
void * CheckedMalloc(size_t size)
Wrapper around std::malloc that calls std::terminate on out of memory.
auto size(R &&Range, typename std::enable_if< std::is_same< typename std::iterator_traits< decltype(Range.begin())>::iterator_category, std::random_access_iterator_tag >::value, void >::type *=nullptr) -> decltype(std::distance(Range.begin(), Range.end()))
Get the size of a range.
Definition: STLExtras.h:999