MCPcopy Create free account
hub / github.com/ETLCPP/etl / CreateNotNullAssignFromNotNull

Function CreateNotNullAssignFromNotNull

test/test_not_null_pointer_constexpr.cpp:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57 //*************************************************************************
58 constexpr etl::not_null<const int*> CreateNotNullAssignFromNotNull(const int* p1, const int* p2)
59 {
60 // Create a not_null pointer from a pointer.
61 etl::not_null<const int*> nn1(p1);
62 etl::not_null<const int*> nn2(p2);
63
64 nn1 = nn2;
65
66 return nn1;
67 }
68
69 SUITE(test_not_null_pointer)
70 {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected