Adding convenience append(range)

This commit is contained in:
Barry Revzin
2020-08-08 06:33:46 -07:00
committed by Victor Zverovich
parent 0e7cef069b
commit d0dd678693
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ TEST(MemoryBufferTest, MoveCtorInlineBuffer) {
std::allocator<char> alloc;
basic_memory_buffer<char, 5, TestAllocator> buffer((TestAllocator(&alloc)));
const char test[] = "test";
buffer.append(test, test + 4);
buffer.append(string_view(test, 4));
check_move_buffer("test", buffer);
// Adding one more character fills the inline buffer, but doesn't cause
// dynamic allocation.