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

Function CreateNotNullAssignFromPointer

test/test_not_null_pointer_constexpr.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45 //*************************************************************************
46 constexpr etl::not_null<const int*> CreateNotNullAssignFromPointer(const int* p1, const int* p2)
47 {
48 // Create a not_null pointer from a pointer.
49 etl::not_null<const int*> nn(p1);
50
51 // Assign a different pointer to the not_null.
52 nn = p2;
53
54 return nn;
55 }
56
57 //*************************************************************************
58 constexpr etl::not_null<const int*> CreateNotNullAssignFromNotNull(const int* p1, const int* p2)

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected