Library: Foundation
Package: Dynamic
Header: Poco/Dynamic/Pair.h
Pair allows to define a pair of values.
Member Functions: first, operator =, second, swap, toString
typedef typename std::pair < K, Var > Data;
Pair();
Creates an empty Pair
Creates the Pair from another pair.
Creates the Pair from the given value.
template < typename T > Pair(
const std::pair < K, T > & val
);
Creates Pair form standard pair.
template < typename T > Pair(
const K & first,
const T & second
);
Creates pair from two values.
virtual ~Pair();
Destroys the Pair.
inline const K & first() const;
Returns the first member of the pair.
Pair & operator = (
const Pair & other
);
Copy constructs Pair from another pair.
inline const Var & second() const;
Returns the second member of the pair.
Swaps the content of the two Pairs.
std::string toString();