Forwards copy construction for T. Enables usage like this: static NoDestructor<std::array<string, 3>> x{{{"1", "2", "3"}}}; static NoDestructor<std::vector<int>> x{{1, 2, 3}};
Declared in <absl/base/no_destructor.h>
constexpr
explicit
NoDestructor(T const& x);
| Name | Description |
|---|---|
| x | The value to copy-construct the wrapped T from. |