Namespaces
Functions
-
template <typename T, typename... Args>ktl::enable_if_t<!ktl::is_array_v<T>, unique_ptr<T>> make_unique (fbl::AllocChecker * ac, Args &&... args)Defined at line 22 of file ../../zircon/kernel/lib/ktl/include/ktl/unique_ptr.h
-
template <typename T, typename... Args>ktl::enable_if_t<! ktl::is_array_v<T>, unique_ptr<T>> make_unique (fbl::AllocChecker * ac, Args &&... args)Defined at line 22 of file ../../zircon/kernel/lib/ktl/include/ktl/unique_ptr.h
-
template <typename T, typename... Args>ktl::enable_if_t<ktl::is_unbounded_array_v<T>, unique_ptr<T>> make_unique (fbl::AllocChecker * ac, size_t n)For an unbounded array of given size, each element is value-initialized.
This is different from plain `new (ac) T[n]`, which performs default-initialization.
Defined at line 30 of file ../../zircon/kernel/lib/ktl/include/ktl/unique_ptr.h
-
template <typename Ttypename... Args>ktl::enable_if_t<ktl::is_unbounded_array_v<T>, unique_ptr<T>> make_unique (fbl::AllocChecker * acsize_t n)For an unbounded array of given size, each element is value-initialized.
This is different from plain `new (ac) T[n]`, which performs default-initialization.
Defined at line 30 of file ../../zircon/kernel/lib/ktl/include/ktl/unique_ptr.h