On Jan 1, 2023, at 8:31 PM, Jayesh Badwaik via Lib-Ext <lib-ext@lists.isocpp.org> wrote:

Can we have std::environment  effectively as a data type and std::get_environment return a value of that type at that moment in time., which now can be used as one sees fit? 

I was hoping to not create another data structure — we have plenty of those already.  If we have get_environment return an appropriate range users should be able to use c++23 range_t collection constructors or ranges::to in a pipeline to create the collection of choice — say flat_map<string, string>.

Jeff