template <size_t size>

class TypeWithSize

Defined at line 2211 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h

This template class serves as a compile-time function from size to

type. It maps a size in bytes to a primitive type with that

size. e.g.

TypeWithSize

<

4>::UInt

is typedef-ed to be unsigned int (unsigned integer made up of 4

bytes).

Such functionality should belong to STL, but I cannot find it

there.

Google Test uses this class in the implementation of floating-point

comparison.

For now it only handles UInt (unsigned int) as that's all Google Test

needs. Other types can be easily added in the future if need

arises.