summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_examples_tutorial.qdoc
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-08-06 14:28:44 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-08-12 09:12:37 (GMT)
commit3111f3c31627466d35317cceeb535c7679f4d3fa (patch)
treeea1b0ca59d90f0639227541524e4224a9e6232a9 /doc/src/snippets/code/doc_src_examples_tutorial.qdoc
parent171d92dc8b800b24d28c7b4abf34d6961763bbf4 (diff)
downloadQt-3111f3c31627466d35317cceeb535c7679f4d3fa.zip
Qt-3111f3c31627466d35317cceeb535c7679f4d3fa.tar.gz
Qt-3111f3c31627466d35317cceeb535c7679f4d3fa.tar.bz2
Add the typedefs to QSharedPointer and QWeakPointer to make template
usage simpler. For example, this allows writing code like: template <class Pointer> typename Pointer::pointer getPointer(constPointer &p) { return p.data(); } and that code will work for both QSharedPointer and QWeakPointer. Reviewed-by: Harald Fernengel Also add an operator- to make pointer operations possible.
Diffstat (limited to 'doc/src/snippets/code/doc_src_examples_tutorial.qdoc')
0 files changed, 0 insertions, 0 deletions