8 #ifndef WPIUTIL_WPI_MEMORY_H_ 9 #define WPIUTIL_WPI_MEMORY_H_ 40 #endif // WPIUTIL_WPI_MEMORY_H_ void * CheckedCalloc(size_t num, size_t size)
Wrapper around std::calloc that calls std::terminate on out of memory.
Definition: memory.cpp:16
void * CheckedMalloc(size_t size)
Wrapper around std::malloc that calls std::terminate on out of memory.
Definition: memory.cpp:25
namespace to hold default to_json function
Definition: json_binary_writer.cpp:39
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
void * CheckedRealloc(void *ptr, size_t size)
Wrapper around std::realloc that calls std::terminate on out of memory.
Definition: memory.cpp:34