template <typename T, size_t MaxCount>

class FixedArrayFromFile

Defined at line 248 of file ../../src/lib/elfldltl/include/lib/elfldltl/memory.h

This is an implementation of the Allocator API for File::ReadArrayFromFile

that uses a fixed buffer inside the object (i.e. on the stack). It simply

fails if more than MaxCount elements need to be read.

Public Methods

std::optional<Result> operator() (size_t size)

Defined at line 276 of file ../../src/lib/elfldltl/include/lib/elfldltl/memory.h

Records