|
| | UbTuple ()=default |
| |
| | UbTuple (typename UbTypeOp< P1 >::RefConstT a1, typename UbTypeOp< P2 >::RefConstT a2, typename UbTypeOp< P3 >::RefConstT a3=UbNullT(), typename UbTypeOp< P4 >::RefConstT a4=UbNullT(), typename UbTypeOp< P5 >::RefConstT a5=UbNullT(), typename UbTypeOp< P6 >::RefConstT a6=UbNullT(), typename UbTypeOp< P7 >::RefConstT a7=UbNullT(), typename UbTypeOp< P8 >::RefConstT a8=UbNullT()) |
| |
| template<typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6 , typename U7 , typename U8 > |
| UbTuple< P1, P2, P3, P4, P5, P6, P7, P8 > & | operator= (const UbTuple< U1, U2, U3, U4, U5, U6, U7, U8 > &rhs) |
| |
| | UbDuo () |
| |
| | UbDuo (T1 const &a, T2 const &b) |
| |
| template<typename U1 , typename U2 > |
| | UbDuo (UbDuo< U1, U2 > const &d) |
| |
| template<typename U1 , typename U2 > |
| UbDuo< T1, T2 > & | operator= (UbDuo< U1, U2 > const &d) |
| |
| T1 & | v1 () |
| |
| T1 const & | v1 () const |
| |
| T2 & | v2 () |
| |
| T2 const & | v2 () const |
| |
template<
typename P1,
typename P2 = UbNullT,
typename P3 = UbNullT,
typename P4 = UbNullT,
typename P5 = UbNullT,
typename P6 = UbNullT,
typename P7 = UbNullT,
typename P8 = UbNullT>
class UbTuple< P1, P2, P3, P4, P5, P6, P7, P8 >
A class implements a tuple.
usage: ...
Advanced UbTuple Example: create and use tuple with only c1 field
std::cout << t1.
v1() << std::endl;
std::shared_ptr< T > SPtr
create and use duo:
std::cout << val<1>(t2) << ", ";
std::cout << t2.
v1() << std::endl;
create and use triple:
std::cout << val<1>(t3) << ", ";
std::cout << val<2>(t3) << ", ";
std::cout << val<3>(t3) << std::endl;
UbTuple< T1 > makeUbTuple(T1 const &a1)
create and use quadruple:
std::cout << val<4>(t4) << std::endl;
std::cout << t4.v2().v2().v2() << std::endl;
Definition at line 476 of file UbTuple.h.