MCPcopy Create free account
hub / github.com/catboost/catboost / MakeHolder

Function MakeHolder

util/generic/ptr.h:385–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384template <typename T, typename... Args, class = std::enable_if_t<std::is_constructible_v<T, Args...>>>
385[[nodiscard]] THolder<T> MakeHolder(Args&&... args) {
386 return THolder<T>(new T(std::forward<Args>(args)...));
387}
388
389/*
390 * usage:

Callers 2

InitCustomMethod · 0.85
VerifiedConstructMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected