Apply coding conventions

This commit is contained in:
Victor Zverovich
2023-12-30 16:07:35 -08:00
parent 4939d67a83
commit 8e6b2541a6
4 changed files with 19 additions and 20 deletions
+2 -2
View File
@@ -353,9 +353,9 @@ TEST(memory_buffer_test, move_assignment) {
}
TEST(memory_buffer_test, grow) {
typedef allocator_ref<mock_allocator<int>> Allocator;
using allocator = allocator_ref<mock_allocator<int>>;
mock_allocator<int> alloc;
basic_memory_buffer<int, 10, Allocator> buffer((Allocator(&alloc)));
basic_memory_buffer<int, 10, allocator> buffer((allocator(&alloc)));
buffer.resize(7);
using fmt::detail::to_unsigned;
for (int i = 0; i < 7; ++i) buffer[to_unsigned(i)] = i * i;