[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pass by Value for Classes
From: |
Mike Papper |
Subject: |
Pass by Value for Classes |
Date: |
Tue, 23 Sep 2003 15:49:54 -0700 |
Hello, I was wondering if there what classes can safely and
efficiently be passed by value (i..e, into functions or put onto templated
containers).
Is there a general rule for determining this (such as, if it has a copy
constructor, its safe to use in pass-by-value)?
Is this possible for:
Socket,
Thread (I would assume not, thus we would stick pointers to thread objects
into a queue to manage them)
Synchronization classes like Mutex, AtomicLock, Semaphore, Event, Conditional
etc.
--
Mike Papper
Fantastic
address@hidden
650-356-2113
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Pass by Value for Classes,
Mike Papper <=