template<
class T>
class utils::FixedArray< T >
A fixed-size array with the size determined at runtime.
The array also allows initializing each of the array elements with the same parameters:
public:
explicit NonDefaultConstructible(std::string str) : str_(
std::move(str)) {}
std::string GetString() const { return str_; }
private:
std::string str_;
};
ASSERT_EQ(array[0].GetString(),
"The string");
ASSERT_EQ(array[14].GetString(),
"The string");
ASSERT_EQ(array[41].GetString(),
"The string");
Definition at line 33 of file fixed_array.hpp.