MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / Array

Function Array

Libraries/Containers/Array.h:54–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52{
53 using Parent = Segment<detail::ArrayVTable<T, N>>;
54 Array() : Parent(sizeof(T) * N) {};
55 // clang-format off
56 Array(std::initializer_list<T> list) : Array() { SC_CONTAINERS_ASSERT_RELEASE(Parent::template assign<T>({list.begin(), list.size()})); }
57 Array(const Array& other) : Array() { SC_CONTAINERS_ASSERT_RELEASE(Parent::append(other.toSpanConst())); }

Callers

nothing calls this directly

Calls 4

appendFunction · 0.50
assignFunction · 0.50
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected