aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llstl.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcommon/llstl.h')
-rw-r--r--linden/indra/llcommon/llstl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/llcommon/llstl.h b/linden/indra/llcommon/llstl.h
index 4486727..13fd9a7 100644
--- a/linden/indra/llcommon/llstl.h
+++ b/linden/indra/llcommon/llstl.h
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2003&license=viewergpl$ 5 * $LicenseInfo:firstyear=2003&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2003-2008, Linden Research, Inc. 7 * Copyright (c) 2003-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -79,6 +79,9 @@ struct compare_pointer_contents
79// The general form is: 79// The general form is:
80// 80//
81// std::for_each(cont.begin(), cont.end(), DeletePointer()); 81// std::for_each(cont.begin(), cont.end(), DeletePointer());
82// somemap.clear();
83//
84// Don't forget to clear()!
82 85
83struct DeletePointer 86struct DeletePointer
84{ 87{
@@ -95,7 +98,7 @@ struct DeletePointerArray
95 } 98 }
96}; 99};
97 100
98// DeletePointer is a simple helper for deleting all pointers in a map. 101// DeletePairedPointer is a simple helper for deleting all pointers in a map.
99// The general form is: 102// The general form is:
100// 103//
101// std::for_each(somemap.begin(), somemap.end(), DeletePairedPointer()); 104// std::for_each(somemap.begin(), somemap.end(), DeletePairedPointer());