Changeset 10769 for code/branches/cpp11_v2/src/libraries/util
- Timestamp:
- Nov 7, 2015, 10:23:42 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/util/SharedPtr.h
r10768 r10769 343 343 For example the @c Functor classes: While a @c Functor* pointer would be managed by 344 344 @c SharedPtr<Functor>, the child class @c FunctorStatic is managed by the class 345 <tt>SharedChildPtr<FunctorStatic, SharedPtr<Functor> 345 <tt>SharedChildPtr<FunctorStatic, SharedPtr<Functor>></tt>. 346 346 347 347 The second template argument @a Parent is used as the parent class of … … 351 351 So for example this works: 352 352 @code 353 SharedChildPtr<FunctorStatic, SharedPtr<Functor> 353 SharedChildPtr<FunctorStatic, SharedPtr<Functor>> functorStatic = createFunctor(&MyClass::myStaticFunction); 354 354 SharedPtr<Functor> functor = functorStatic; 355 355 @endcode
Note: See TracChangeset
for help on using the changeset viewer.