MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / InitCopy

Method InitCopy

tests/gtest/gtest.h:7564–7570  ·  view source on GitHub ↗

Initializes this object with a copy of the input.

Source from the content-addressed store, hash-verified

7562
7563 // Initializes this object with a copy of the input.
7564 void InitCopy(const Element* array, size_t a_size) {
7565 Element* const copy = new Element[a_size];
7566 CopyArray(array, a_size, copy);
7567 array_ = copy;
7568 size_ = a_size;
7569 clone_ = &NativeArray::InitCopy;
7570 }
7571
7572 // Initializes this object with a reference of the input.
7573 void InitRef(const Element* array, size_t a_size) {

Callers

nothing calls this directly

Calls 1

CopyArrayFunction · 0.85

Tested by

no test coverage detected