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}};

Synopsis

Declared in <absl/base/no_destructor.h>

constexpr
explicit
NoDestructor(T const& x);

Parameters

Name

Description

x

The value to copy‐construct the wrapped T from.

Created with MrDocs