cppreference shows the following definition of std::in_place_t
:
struct in_place_t {
explicit in_place_t() = default;
};
inline constexpr std::in_place_t in_place{};
Why have they added an explicit
and defaulted constructor? Why it isn't left out? What are the benefits?