summaryrefslogtreecommitdiff
path: root/ace/Malloc_T.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2000-10-22 22:18:32 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2000-10-22 22:18:32 +0000
commit22bfbe16ef5146ae2a5718dfbf5ddf71341b8952 (patch)
treec01370ab11a3da10deab04a6c8f7333438801fda /ace/Malloc_T.h
parent4967e120cf374de6acb7a66ccb8ba5656ad5579d (diff)
downloadATCD-22bfbe16ef5146ae2a5718dfbf5ddf71341b8952.tar.gz
ChangeLogTag:Sun Oct 22 17:11:16 2000 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace/Malloc_T.h')
-rw-r--r--ace/Malloc_T.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/Malloc_T.h b/ace/Malloc_T.h
index e244ec90cbe..782fd40088f 100644
--- a/ace/Malloc_T.h
+++ b/ace/Malloc_T.h
@@ -80,8 +80,11 @@ public:
~ACE_Cached_Allocator (void);
// clear things up.
- void* malloc (size_t);
- // get a chunk of memory from free store.
+ void *malloc (size_t nbytes = sizeof (T));
+ // Get a chunk of memory from free store. Note that <nbytes> is
+ // only checked to make sure that it's <= to sizeof T, and is
+ // otherwise ignored since <malloc> always returns a pointer to an
+ // item of sizeof (T).
void free (void *);
// return a chunk of memory back to free store.