xtd 0.2.0
Loading...
Searching...
No Matches
xtd::collections::generic::key_value_pair<> Struct Reference
Inheritance diagram for xtd::collections::generic::key_value_pair<>:
xtd::static_object

Definition

Defines a key/value pair that can be set or retrieved.

template<>
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
Defines a key/value pair that can be set or retrieved.
Definition key_value_pair.hpp:37
Header
#include <xtd/collections/generic/key_value_pair>
Namespace
xtd::collections::generic
Library
xtd.core
Remarks
xtd::collections::generic::key_value_pair is same as std::pair.

Public Static Methods

template<class key_t , class value_t >
static key_value_pair< key_t, value_t > create (key_t key, value_t value)
 Creates a key_value_pair from specified key and value.
 

Member Function Documentation

◆ create()

template<class key_t , class value_t >
static key_value_pair< key_t, value_t > xtd::collections::generic::key_value_pair<>::create ( key_t  key,
value_t  value 
)
inlinestatic

Creates a key_value_pair from specified key and value.

Template Parameters
key_tThe type of the key.
value_tThe type of the value.
Parameters
keyThe key of the key_value_pair.
valueThe value of the key_value_pair.
Returns
The key_value_pair value type.

The documentation for this struct was generated from the following file: