Commit 48a995ed authored by Davis King's avatar Davis King

Added some comments

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402809
parent 6c528a20
...@@ -26,6 +26,17 @@ namespace dlib ...@@ -26,6 +26,17 @@ namespace dlib
> >
class type_safe_union : noncopyable class type_safe_union : noncopyable
{ {
/*!
CONVENTION
- is_empty() == (type_identity == 0)
- contains<T>() == (type_identity == get_id<T>())
- mem.data == the block of memory on the stack which is
where objects in the union are stored
!*/
private:
template <typename A, typename B> template <typename A, typename B>
struct max struct max
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment