C++ Logo


Advanced search

Re: [isocpp-lib-ext] std::environment

From: Jeff Garland <jeff_at_[hidden]>
Date: Sun, 1 Jan 2023 20:48:52 -0700
> On Jan 1, 2023, at 8:31 PM, Jayesh Badwaik via Lib-Ext <lib-ext_at_[hidden]> 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>.


Received on 2023-01-02 03:48:57