MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / Own

Method Own

common/memory.h:1264–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1262struct Ownable {
1263 protected:
1264 Owned<const T> Own() const noexcept {
1265 static_assert(std::is_base_of_v<Data, T>, "T must be derived from Data");
1266 const T* const that = static_cast<const T*>(this);
1267 return Owned<const T>(
1268 Owner(Owner::Own(static_cast<const Data*>(that)->owner_)), that);
1269 }
1270
1271 Owned<T> Own() noexcept {
1272 static_assert(std::is_base_of_v<Data, T>, "T must be derived from Data");

Callers 1

ValueToCelValueFunction · 0.80

Calls 2

OwnerFunction · 0.85
OwnFunction · 0.85

Tested by

no test coverage detected