diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-30 10:50:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-01 00:58:27 +0300 |
commit | 1e8697cd8094183a3f356bf8564284a31ffb89fc (patch) | |
tree | 554b1ac7856f3f168c58476ce53d1953beaa760e /source/blender/freestyle/intern/system/PointerSequence.h | |
parent | 5ca8ac51d04c6feb9d29d75fb2525168d30fbe74 (diff) |
Cleanup: comments (long lines) in freestyle
Diffstat (limited to 'source/blender/freestyle/intern/system/PointerSequence.h')
-rw-r--r-- | source/blender/freestyle/intern/system/PointerSequence.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/source/blender/freestyle/intern/system/PointerSequence.h b/source/blender/freestyle/intern/system/PointerSequence.h index 015033beeb4..d136632f060 100644 --- a/source/blender/freestyle/intern/system/PointerSequence.h +++ b/source/blender/freestyle/intern/system/PointerSequence.h @@ -23,23 +23,25 @@ * * PointerSequence * - * Produces a wrapped version of a sequence type (std::vector, std::deque, std::list) that will take ownership of - * pointers that it stores. Those pointers will be deleted in its destructor. + * Produces a wrapped version of a sequence type (std::vector, std::deque, std::list) that will + * take ownership of pointers that it stores. Those pointers will be deleted in its destructor. * - * Because the contained pointers are wholly owned by the sequence, you cannot make a copy of the sequence. - * Making a copy would result in a double free. + * Because the contained pointers are wholly owned by the sequence, you cannot make a copy of the + * sequence. Making a copy would result in a double free. * - * This is a no-frills class that provides no additional facilities. The user is responsible for managing any - * pointers that are removed from the list, and for making sure that any pointers contained in the class are not - * deleted elsewhere. Because this class does no reference counting, the user must also make sure that any pointer - * appears only once in the sequence. + * This is a no-frills class that provides no additional facilities. The user is responsible for + * managing any pointers that are removed from the list, and for making sure that any pointers + * contained in the class are not deleted elsewhere. Because this class does no reference + * counting, the user must also make sure that any pointer appears only once in the sequence. * * If more sophisticated facilities are needed, use tr1::shared_ptr or boost::shared_ptr. - * This class is only intended to allow one to eke by in projects where tr1 or boost are not available. + * This class is only intended to allow one to eke by in projects where tr1 or boost are not + * available. * - * Usage: The template takes two parameters, the standard container, and the class held in the container. This is a - * limitation of C++ templates, where T::iterator is not a type when T is a template parameter. If anyone knows a way - * around this limitation, then the second parameter can be eliminated. + * Usage: The template takes two parameters, the standard container, and the class held in the + * container. This is a limitation of C++ templates, where T::iterator is not a type when T is a + * template parameter. If anyone knows a way around this limitation, then the second parameter can + * be eliminated. * * Example: * PointerSequence<vector<Widget*>, Widget*> v; |