| Home | Libraries | People | FAQ | More

###### key_value_pair::key_value_pair (5 of 7 overloads)

Constructor.

<h7> Synopsis </h7>

    template<
        class... Args>
    key_value_pair(
        string_view key,
        Args&&... args);

<h7> Description </h7>

This constructs a key/value pair.

<h7> Exception Safety </h7>

Strong guarantee. Calls to `memory_resource::allocate` may throw.

<h7> Parameters </h7>

Name | Description
--- | ---
`key` | The key string to use.
`args` | Optional arguments forwarded to the `value` constructor.