ivutils
|
Class for packing pairs of data of two different types. More...
#include <seqpack.h>
Class for packing pairs of data of two different types.
The types are packed by different packers but recovered simultaneously by an iterator pair_tt is the returned value type, it must have at least one of the following constructors pair_tt(value_t1 &a,value_t2 &b) pair_tt(const value_t1 &a,const value_t2 &b) pair_tt(value_t1 a,value_t2 b) which may construct a type passing arguments either by value or by reference. WARNING: recording by the returned references is possible for some packers, but may lead to changes in other packed elements, the policy of recording is determined by packers By default the returned value type of pair_pack is pair<value_t1,value_t2> returned by value (no recording possible) see refpair_pack()