src/corelib/tools/qpair.qdoc
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
    33     
    33     
    34     QPair\<T1, T2\> can be used in your application if the STL \c
    34     QPair\<T1, T2\> can be used in your application if the STL \c
    35     pair type is not available. It stores one value of type T1 and
    35     pair type is not available. It stores one value of type T1 and
    36     one value of type T2. It can be used as a return value for a
    36     one value of type T2. It can be used as a return value for a
    37     function that needs to return two values, or as the value type of
    37     function that needs to return two values, or as the value type of
    38     a \l{generic container}.
    38     a \l{Container classes}{generic container}.
    39 
    39 
    40     Here's an example of a QPair that stores one QString and one \c
    40     Here's an example of a QPair that stores one QString and one \c
    41     double value:
    41     double value:
    42 
    42 
    43     \snippet doc/src/snippets/code/doc_src_qpair.qdoc 0
    43     \snippet doc/src/snippets/code/doc_src_qpair.qdoc 0
    51     data types}. You cannot, for example, store a QWidget as a value;
    51     data types}. You cannot, for example, store a QWidget as a value;
    52     instead, store a QWidget *. A few functions have additional
    52     instead, store a QWidget *. A few functions have additional
    53     requirements; these requirements are documented on a per-function
    53     requirements; these requirements are documented on a per-function
    54     basis.
    54     basis.
    55 
    55 
    56     \sa {Generic Containers}
    56     \sa {Container Classes}
    57 */
    57 */
    58 
    58 
    59 /*! \typedef QPair::first_type
    59 /*! \typedef QPair::first_type
    60 
    60 
    61     The type of the first element in the pair (T1).
    61     The type of the first element in the pair (T1).