# Poco

# template < class TKey, class TValue >

# class KeyValueArgs

Library: Foundation
Package: Cache
Header: Poco/KeyValueArgs.h

## Description

Simply event arguments class to transfer a key and a value via an event call. Note that key and value are *NOT* copied, only references to them are stored.

## Member Summary

Member Functions: key, operator =, value

## Constructors

### KeyValueArgs

KeyValueArgs(
const KeyValueArgs & args
);

### KeyValueArgs

KeyValueArgs(
const TKey & aKey,
const TValue & aVal
);

## Destructor

### ~KeyValueArgs

~KeyValueArgs() = default;

## Member Functions

### key

const TKey & key() const;

Returns a reference to the key,

### operator =

KeyValueArgs & operator = (
const KeyValueArgs & args
) = delete;

### value

const TValue & value() const;

Returns a Reference to the value.

## Variables

### _key

const TKey & _key;

### _value

const TValue & _value;